Re: Various string changes
David Goodger <[email protected]> Sat, 27 Dec 2003 12:40:03 -0500
| Newsgroups | gmane.comp.python.optik.user |
|---|---|
| Message-ID | <[email protected]> |
Johan Svedberg wrote: > Also, I've been trying to change the description for the built-in > "-h, --help"-option without success. I suspect one should use > format_help(), but I havn't figured out just how. So some code for > this would also be great... :-) When you instantiate the OptionParser object, pass the keyword argument & value "add_help_option=None". Then just add your own -h/--help option, same as any other. -- David Goodger http://starship.python.net/~goodger For hire: http://starship.python.net/~goodger/cv Docutils: http://docutils.sourceforge.net/ (includes reStructuredText: http://docutils.sf.net/rst.html) ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click