Re: Customize help output from optparse (or argparse)

2011-05-21 Thread Thorsten Kampe
* Thomas 'PointedEars' Lahn (Thu, 12 May 2011 22:22:20 +0200) > Thorsten Kampe wrote: > > I'm using optparse for a little Python script. > > > > 1. The output from "--help" is: > > """ > > Usage: script.py > > > > script.py does something > > > > Options: > > -h, --help show this help messa

Re: Customize help output from optparse (or argparse)

2011-05-12 Thread Karim
On 05/12/2011 10:22 PM, Thomas 'PointedEars' Lahn wrote: Thorsten Kampe wrote: I'm using optparse for a little Python script. 1. The output from "--help" is: """ Usage: script.py script.py does something Options: -h, --help show this help message and exit """ I would prefer to have the

Re: Customize help output from optparse (or argparse)

2011-05-12 Thread Thomas 'PointedEars' Lahn
Thorsten Kampe wrote: > I'm using optparse for a little Python script. > > 1. The output from "--help" is: > """ > Usage: script.py > > script.py does something > > Options: > -h, --help show this help message and exit > """ > > I would prefer to have the description before the usage, lik

Customize help output from optparse (or argparse)

2011-05-12 Thread Thorsten Kampe
Hi, I'm using optparse for a little Python script. 1. The output from "--help" is: """ Usage: script.py script.py does something Options: -h, --help show this help message and exit """ I would prefer to have the description before the usage, like... """ script.py does something Usage: s