I tried this:
and I expected:
but I got:
Is there an easy way to make optparse not force the usage prompt to start with usage? Or do I have to implement this myself.
Code:
usage = "Something, by Spacecoyote\nusage: %prog file [options]" parser = OptionParser(usage)
Code:
test.py --help
Code:
Something, by Spacecoyote usage: test.py file [options]
Code:
usage: Something, by Spacecoyote usage: test.py file [options]
Comment