summaryrefslogtreecommitdiffstats
path: root/Lib/optparse.py
Commit message (Collapse)AuthorAgeFilesLines
* Clear the -3 warnings in optparse.pyRaymond Hettinger2008-07-101-15/+9
|
* Change isbasestring function as discussed on the cvs list a while agoChristian Heimes2008-01-271-5/+7
|
* Fixed bug #1915: Python compiles with --enable-unicode=no again. However ↵Christian Heimes2008-01-231-1/+5
| | | | several extension methods and modules do not work without unicode support.
* Resync optparse with Optik 1.5.3: minor tweaks for/to tests.Greg Ward2006-07-231-4/+7
|
* Whitespace normalization.Tim Peters2006-06-111-2/+2
|
* Bug #1498146: fix optparse to handle Unicode strings in option help,Greg Ward2006-06-111-6/+11
| | | | description, and epilog.
* ("Forward-port" of r46506)Armin Rigo2006-05-281-1/+4
| | | | | | | | | | | | | | Remove various dependencies on dictionary order in the standard library tests, and one (clearly an oversight, potentially critical) in the standard library itself - base64.py. Remaining open issues: * test_extcall is an output test, messy to make robust * tarfile.py has a potential bug here, but I'm not familiar enough with this code. Filed in as SF bug #1496501. * urllib2.HTTPPasswordMgr() returns a random result if there is more than one matching root path. I'm asking python-dev for clarification...
* Whitespace normalization.Tim Peters2006-04-231-2/+2
|
* Update optparse to Optik 1.5.1.Greg Ward2006-04-231-51/+153
|
* Reduce the usage of the types module.Raymond Hettinger2005-02-071-6/+5
|
* Change code in setup.py for parsing LDFLAGS and CPPFLAGS to use optparseBrett Cannon2004-12-071-1/+4
| | | | | instead of getopt. Required making use of gettext._ as optional (optparse changed OK'ed by Greg Ward in private email).
* Update optparse module and test suite to Optik 1.5a2.Greg Ward2004-10-271-18/+23
|
* Use proper value for FalseNeal Norwitz2004-10-171-1/+1
|
* Upgrade optparse module and tests to Optik 1.5a1:Greg Ward2004-07-311-195/+353
| | | | | | | | | | | | | | | | | | | | | | | | | | * add expansion of default values in help text: the string "%default" in an option's help string is expanded to str() of that option's default value, or "none" if no default value. * bug #955889: option default values that happen to be strings are now processed in the same way as values from the command line; this allows generation of nicer help when using custom types. Can be disabled with parser.set_process_default_values(False). * bug #960515: don't crash when generating help for callback options that specify 'type', but not 'dest' or 'metavar'. * feature #815264: change the default help format for short options that take an argument from e.g. "-oARG" to "-o ARG"; add set_short_opt_delimiter() and set_long_opt_delimiter() methods to HelpFormatter to allow (slight) customization of the formatting. * patch #736940: internationalize Optik: all built-in user- targeted literal strings are passed through gettext.gettext(). (If you want translations (.po files), they're not included with Python -- you'll find them in the Optik source distribution from http://optik.sourceforge.net/ .) * bug #878453: respect $COLUMNS environment variable for wrapping help output. * feature #988122: expand "%prog" in the 'description' passed to OptionParser, just like in the 'usage' and 'version' strings. (This is *not* done in the 'description' passed to OptionGroup.)
* Fix support for the "prog" keyword to the OptionParser constructor, as wellFred Drake2004-04-011-3/+8
| | | | | | as directly setting the .prog attribute (which should be supported based on the class docstring). Closes SF bug #850964.
* [Patch #900071] Be case-insensitive when removing 'usage:' stringAndrew M. Kuchling2004-03-211-1/+1
|
* don't wrap lines too late by defaultFred Drake2004-01-261-2/+2
| | | | closes SF bug #842213
* Update to Optik 1.4.1+: adds __all__ (Optik SF bug #728563).Greg Ward2003-05-081-3/+20
|
* Whitespace normalization.Tim Peters2003-04-241-1/+0
|
* Update to Optik 1.4.1; here are the relevant bits of the change log:Greg Ward2003-04-211-49/+48
| | | | | | | | | | * Fixed some long-hidden bugs revealed by the new PyUnit-based test suite (thanks to Johannes Gijsbers the new test suite, improved tests that caught the bugs, and the bug fixes). * Make store_true/store_false store True/False rather than 1/0. Details available in Optik's CVS repository.
* Tweak __version__ -- the current code is between Optik 1.4 and 1.4.1.Greg Ward2003-01-041-1/+1
|
* Checking in Greg Ward's Optik, as optparse.py. This is the mostGuido van Rossum2002-11-141-0/+1384
recent version from Greg's CVS. I've changed the module docstring, added a copyright notice, and renamed OptikError to OptParseError. Still to do are documentation and unit tests.