History

python/scripts/aubiocut: make -i optional

Paul Brossier committed 12 years ago

Commit 1e1a2c91 parent d4c09321 file · +6 −2Browse files

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

Unified · Split

python/scripts/aubiocut+6−2
@@ -114,8 +114,12 @@ def parse_args(): · 113 unmodified lines
114114 help="be quiet")
115115 (options, args) = parser.parse_args()
116116 if not options.source_file:
117− print "no file name given\n", usage
118− sys.exit(1)
117+ import os.path
118+ if len(args) == 1:
119+ options.source_file = args[0]
120+ else:
121+ print "no file name given\n", usage
122+ sys.exit(1)
119123 return options, args
120124
121125 if __name__ == '__main__':

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