Changeset 1f00b69 for python


Ignore:
Timestamp:
Mar 23, 2017, 2:48:10 PM (8 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, sampler
Children:
8e2f36a
Parents:
f012722
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/scripts/aubiocut

    rf012722 r1f00b69  
    77import sys
    88
    9 usage = "usage: %s [options] -i soundfile" % sys.argv[0]
    10 usage += "\n help: %s -h" % sys.argv[0]
    11 
    129def 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",
Note: See TracChangeset for help on using the changeset viewer.