[ python-Bugs-900071 ] optparse: usage issues

SourceForge.net noreply at sourceforge.net
Sat Feb 21 03:19:16 EST 2004


Bugs item #900071, was opened at 2004-02-19 02:14
Message generated for change (Settings changed) made by rhettinger
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=900071&group_id=5470

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Simon Dahlbacka (sdahlbac)
>Assigned to: Greg Ward (gward)
Summary: optparse: usage issues

Initial Comment:
current documentation states that 

usage = "usage: %prog [options] arg1 arg2"
parser = OptionParser(usage=usage)

would yield

usage: <yourscript> [options] arg1 arg2

however, using python 2.3.2

usage = "Usage: %prog [options] file"

yields:

usage: Usage <yourscript> [options] file"


IMO, it should be possible to replace the whole thing
(think i18n)

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=900071&group_id=5470



More information about the Python-bugs-list mailing list