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
66
77 import sys
88
9−usage = "usage: %s [options] -i soundfile" % sys.argv[0]
10−usage += "\n help: %s -h" % sys.argv[0]
11−
129 def parse_args():
1310 from optparse import OptionParser
11+ usage = "usage: %s [options] -i soundfile" % sys.argv[0]
12+ usage += "\n help: %s -h" % sys.argv[0]
1413 parser = OptionParser(usage=usage)
1514 parser.add_option("-i", "--input", action = "store", dest = "source_file",
1615 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