summaryrefslogtreecommitdiff
path: root/argparse.py
Commit message (Collapse)AuthorAgeFilesLines
* added aliases support, thanks to Roland KammererThomas Waldmann2014-12-151-3/+14
|
* use tox for testing, bump version to 1.3.0, declare support for py 3.3+3.4Thomas Waldmann2014-12-151-1/+6
| | | | also make sure we really test THIS lib, not the builtin one in stdlib.
* add universal wheel support, host files on pypir122Thomas Waldmann2014-11-151-1/+1
|
* bump version to 1.2.1, add py 3.2 to the tested listr121Thomas Waldmann2011-03-311-1/+1
|
* fix Python 3.1 compatibility, 1 test failure see note belowThomas Waldmann2011-03-301-0/+4
| | | | | | | | Note: There is one harmless test failure due to "basestring" global name, I added a comment to the src about it. It is basically same issue as on python 2.3 with "set" and "sorted".
* bump version to 1.2, add NEWS.txt to dist archiveThomas Waldmann2011-03-271-1/+1
|
* make most tests work on python 2.3Thomas Waldmann2011-03-271-1/+13
|
* make tests work on python 2.4Thomas Waldmann2011-03-271-1/+10
|
* add files from python 2.7.1 (Python License)Thomas Waldmann2011-03-261-0/+2337
|
* licensing issues: we need a clean restart here - remove everythingThomas Waldmann2011-03-261-2353/+0
| | | | | | | | | | | | | | | | | | | | Problem: argparse has been licensed under Apache License v2.0 While this license is a FOSS license, it has known compatibility issues with the GNU GPL v2 - projects under GPL v2 can't use code under apache license v2.0. Projects which use "GPL v2 (or, at user's choice, any later version)" only have one means using code under apache license v2.0: to choose the "or any later" part and go GPL v3. Of course, this would cause issues with other license.... As argparse was contributed to the Python v2.7 code base, it is available under the Python License, which has no such compatibility issue. Thus, a clean solution for the argparse package (for users who need argparse for projects which have to support python older than 2.7) is to remove all old apache licensed files and start from scratch using the python-licensed code from the standard library.
* Release argparse 1.1.r11steven.bethard2010-03-011-1/+1
|
* Better error messages for errors like type='int'. This actually caught a bug ↵steven.bethard2010-02-281-0/+9
| | | | in one of the tests and as I result, this patch also makes sure that types display as their type name when %(type)s is specified.
* Allow single character options, e.g. '-' and '+'.steven.bethard2010-02-281-19/+10
|
* Deprecate ArgumentParser(..., version=XXX, ...) as well as format_version() ↵steven.bethard2010-02-281-1/+18
| | | | and print_version(). These should be replaced with .add_argument(..., action='version', ...).
* Namespace objects now support "in" (__contains__).steven.bethard2010-02-281-0/+7
| | | | Usage and help (but not version) messages are written to stdout, not stderr.
* Add convert_arg_line_to_args to allow subclasses to easily override file ↵steven.bethard2010-01-071-1/+7
| | | | parsing behavior.
* Fix bug where --si=64 was deemed ambiguous when both --si and --size were in ↵steven.bethard2009-12-071-0/+7
| | | | the parser.
* Add support for nargs='...', which allows emulation of command lines like ↵steven.bethard2009-12-061-5/+17
| | | | "python [options] file [arguments]".
* Add get_default method.steven.bethard2009-12-061-1/+7
|
* Allow better custom type error messages using ArgumentTypeError.steven.bethard2009-10-241-1/+13
|
* Support more customization of version arguments.steven.bethard2009-10-241-2/+11
|
* Better error messages when 'dest' occurs twice for positional argumentssteven.bethard2009-10-241-0/+2
|
* Better error messages for invalid actions.steven.bethard2009-10-241-4/+9
|
* Bump version to 1.1a1.steven.bethard2009-10-241-1/+1
|
* Fix bug where options with a single letter were being considered as numbers.steven.bethard2009-10-091-1/+1
|
* Add missing comma in __all__ declaration.steven.bethard2009-09-301-1/+1
|
* Make sure exit() calls _print_message() instead of writing directly to ↵steven.bethard2009-09-291-1/+1
| | | | sys.stderr.
* Bump version numbers to 1.0.2.steven.bethard2009-09-151-1/+1
|
* Fix a bug that was preventing % from being used in help messages.steven.bethard2009-09-131-3/+7
|
* Fix bug with long prog= values.steven.bethard2009-09-121-36/+61
|
* Silence Python 2.6 buggy warnings about Exception.message.steven.bethard2009-09-121-0/+9
|
* Improve error messages when nargs=0 is supplied to _StoreAction or ↵steven.bethard2009-09-121-2/+6
| | | | _AppendAction.
* Fix bug where classic classes were being rejected as type= arguments.steven.bethard2009-09-121-2/+3
|
* Fix bug with mutually exclusive groups in parent= parsers.steven.bethard2009-09-121-0/+11
|
* Set svn:eol-style=native for all .py files.steven.bethard2009-09-121-2216/+2216
|
* Bump version numbers to 1.0.1 in preparation for bugfixes.steven.bethard2009-09-121-1/+1
|
* Bump versions to 1.0 and generate documentation for 1.0 release.r10steven.bethard2009-07-261-1/+1
|
* Spaces now only signal a positional if the argument string doesn't start ↵steven.bethard2009-07-261-4/+4
| | | | with an optional declared in the parser.
* Allow subparsers to take title= and description= parameters.steven.bethard2009-07-261-5/+10
|
* Docstring fixes and additions for better epydoc output.steven.bethard2009-07-131-68/+125
|
* Allow tuples for metavars.steven.bethard2009-07-131-13/+20
|
* Add ArgumentDefaultsHelpFormatter.steven.bethard2009-07-131-1/+16
|
* Fix tests to write files to temp directory.steven.bethard2009-07-121-4/+6
| | | | Fix bug where some files weren't being closed.
* Add support for specifying additional command line arguments in a file using ↵steven.bethard2009-07-121-0/+30
| | | | the syntax ``@file``.
* Add support for parse_known_args.steven.bethard2009-06-141-16/+21
|
* Allow None as the first argument to ArgumentError.steven.bethard2009-06-141-1/+3
|
* Make append* actions copy their default value.steven.bethard2009-05-041-3/+8
| | | | | Bump version numbers, and clean up description text in setup.py. Ignore some generated and local files.
* Support Python 2.3.steven.bethard2009-05-011-21/+39
|
* Fix bug with wrapping mutually exclusive groups in the usage message.steven.bethard2009-04-301-2/+5
|
* Bump version to 0.9.1 to include correct license information (also clean out ↵steven.bethard2009-04-281-1/+1
| | | | a couple remaining BSD references).