Changeset 1e1a2c9


Ignore:
Timestamp:
Nov 20, 2013, 2:47:51 AM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
dedeffc
Parents:
d4c0932
Message:

python/scripts/aubiocut: make -i optional

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/scripts/aubiocut

    rd4c0932 r1e1a2c9  
    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
Note: See TracChangeset for help on using the changeset viewer.