summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2004-07-31 16:16:11 (GMT)
committerGreg Ward <gward@python.net>2004-07-31 16:16:11 (GMT)
commit9c8fe1a9b5b6bd1788d045e53f4a5a65eacaa0f1 (patch)
treec8c994cdd8e79311c1a99a2225c66fcb9c67c48d /Misc
parenteba20e601520adef966da23ff149150da362ebb6 (diff)
downloadcpython-9c8fe1a9b5b6bd1788d045e53f4a5a65eacaa0f1.zip
cpython-9c8fe1a9b5b6bd1788d045e53f4a5a65eacaa0f1.tar.gz
cpython-9c8fe1a9b5b6bd1788d045e53f4a5a65eacaa0f1.tar.bz2
Mention upgrade of optparse to Optik 1.5a1.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS31
1 files changed, 31 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 0fb2559..361a276 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -134,6 +134,37 @@ Library
which return translation strings encoded in the preferred encoding,
as informed by locale module's getpreferredencoding().
+- optparse module (and tests) upgraded to Optik 1.5a1. Changes:
+
+ - 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.)
Tools/Demos
-----------