Showing the changes to python (1 of 1 file). Show all
Unified · Split
| @@ -6,11 +6,10 @@ · 5 unmodified lines | |||
| 6 | 6 | ||
| 7 | import sys | 7 | import sys |
| 8 | 8 | ||
| 9 | usage = "usage: %s [options] -i soundfile" % sys.argv[0] | ||
| 10 | usage += "\n help: %s -h" % sys.argv[0] | ||
| 11 | |||
| 12 | def parse_args(): | 9 | def parse_args(): |
| 13 | from optparse import OptionParser | 10 | from optparse import OptionParser |
| 11 | usage = "usage: %s [options] -i soundfile" % sys.argv[0] | ||
| 12 | usage += "\n help: %s -h" % sys.argv[0] | ||
| 14 | parser = OptionParser(usage=usage) | 13 | parser = OptionParser(usage=usage) |
| 15 | parser.add_option("-i", "--input", action = "store", dest = "source_file", | 14 | parser.add_option("-i", "--input", action = "store", dest = "source_file", |
| 16 | help="input sound file to analyse", metavar = "<source_file>") | 15 | help="input sound file to analyse", metavar = "<source_file>") |