• Greg Ward's avatar
    Upgrade optparse module and tests to Optik 1.5a1: · eba20e60
    Greg Ward yazdı
      * 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.)
    eba20e60
Adı
Son kayıt (commit)
Son güncelleme
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
RISCOS Loading commit data...
Tools Loading commit data...
.cvsignore Loading commit data...
.hgtags Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README Loading commit data...
aclocal.m4 Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...