History

python/scripts/aubiocut: move usage string inside parse_args()

Paul Brossier committed 9 years ago

Commit 1f00b691 parent f0127221 file · +2 −3Browse files

Showing the changes to python (1 of 1 file). Show all

Unified · Split

python/scripts/aubiocut+2−3
@@ -6,11 +6,10 @@ · 5 unmodified lines
6 6
7import sys7import sys
8 8
9usage = "usage: %s [options] -i soundfile" % sys.argv[0]
10usage += "\n help: %s -h" % sys.argv[0]
11
12def parse_args():9def parse_args():
13 from optparse import OptionParser10 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>")

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t