From: Paul Brossier Date: Thu, 23 Mar 2017 13:48:10 +0000 (+0100) Subject: python/scripts/aubiocut: move usage string inside parse_args() X-Git-Tag: 0.4.5~44^2~11 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=1f00b698e39f0985bc575284d9e614d3e8bcedbc;p=aubio.git python/scripts/aubiocut: move usage string inside parse_args() --- diff --git a/python/scripts/aubiocut b/python/scripts/aubiocut index aa8ef3fd..e348665c 100755 --- a/python/scripts/aubiocut +++ b/python/scripts/aubiocut @@ -6,11 +6,10 @@ import sys -usage = "usage: %s [options] -i soundfile" % sys.argv[0] -usage += "\n help: %s -h" % sys.argv[0] - def parse_args(): from optparse import OptionParser + usage = "usage: %s [options] -i soundfile" % sys.argv[0] + usage += "\n help: %s -h" % sys.argv[0] parser = OptionParser(usage=usage) parser.add_option("-i", "--input", action = "store", dest = "source_file", help="input sound file to analyse", metavar = "")