ref: 1f00b698e39f0985bc575284d9e614d3e8bcedbc
parent: f012722592a5e09c3f280240844f0331b6d4123a
author: Paul Brossier <piem@piem.org>
date: Thu Mar 23 10:48:10 EDT 2017
python/scripts/aubiocut: move usage string inside parse_args()
--- 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 = "<source_file>")