HelpFormatter help
Johan Svedberg <[email protected]> Mon, 20 Oct 2003 22:01:59 +0200
| Newsgroups | gmane.comp.python.optik.user |
|---|---|
| Message-ID | <[email protected]> |
Hi!
First, thanks for making optparse, it's great. I almost have things
working as I want now, although there are some visual aspects I need a
hand with. Currently my help message look like this:
usage: lexin.py [OPTIONS]... WORD
options:
-h, --help show this help message and exit
-dDICTIONARY, --dictionary=DICTIONARY
make search in DICTIONARY
-n, --nocorrection don't try to correct unknown words
-v, --version output version information and exit
The things I would like to modify in this output is first of all the
wrapping that's made on the second line, on a 80 width terminal this
would fit:
usage: lexin.py [OPTIONS]... WORD
options:
-h, --help show this help message and exit
-dDICTIONARY, --dictionary=DICTIONARY make search in DICTIONARY
-n, --nocorrection don't try to correct unknown words
-v, --version output version information and exit
Secondly, I would like it to say "Usage:" instad of "usage:" and
"Options:" instad of "options:", can this be done?
--
Johan Svedberg, [email protected], http://johan.svedberg.pp.se/
-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54