shithub: aubio

Download patch

ref: 1e1a2c996181cb8b12f6a464e18b1ac5afa4e250
parent: d4c09320c569a1e7e2c646978e37b06a2f34b774
author: Paul Brossier <[email protected]>
date: Tue Nov 19 21:47:51 EST 2013

python/scripts/aubiocut: make -i optional

--- a/python/scripts/aubiocut
+++ b/python/scripts/aubiocut
@@ -114,8 +114,12 @@
             help="be quiet")
     (options, args) = parser.parse_args()
     if not options.source_file:
-        print "no file name given\n", usage
-        sys.exit(1)
+        import os.path
+        if len(args) == 1:
+            options.source_file = args[0]
+        else:
+            print "no file name given\n", usage
+            sys.exit(1)
     return options, args
 
 if __name__ == '__main__':