From 1db27afbfced0223f4aef9a2d587d0c474bc7335 Mon Sep 17 00:00:00 2001 From: Leo Singer <leo.singer@ligo.org> Date: Fri, 19 Nov 2010 21:26:29 -0800 Subject: [PATCH] gstlal_inspiral: moved docstring to top, reused in OptionParser description --- bin/gstlal_inspiral | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/gstlal_inspiral b/bin/gstlal_inspiral index 9d651794d6..233ff0f64c 100755 --- a/bin/gstlal_inspiral +++ b/bin/gstlal_inspiral @@ -16,6 +16,7 @@ # You should have received a copy of the GNU General Public License along # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +"""Stream-based inspiral analysis tool""" # @@ -59,7 +60,7 @@ from pylal.xlal.datatypes.snglinspiraltable import from_buffer as sngl_inspirals def parse_command_line(): parser = OptionParser( - description = "Stream-based inspiral analysis tool" + description = __doc__ ) parser.add_option("--frame-cache", metavar = "filename", help = "Set the name of the LAL cache listing the LIGO-Virgo .gwf frame files (optional). This is required unless --fake-data or --online-data is used in which case it must not be set.") parser.add_option("--online-data", action = "store_true", help = "Use online DMT-STRAIN instead of a frame file (optional).") -- GitLab