summaryrefslogtreecommitdiff
path: root/test/test_argparse.py
Commit message (Collapse)AuthorAgeFilesLines
* added aliases support, thanks to Roland KammererThomas Waldmann2014-12-151-2/+49
|
* use tox for testing, bump version to 1.3.0, declare support for py 3.3+3.4Thomas Waldmann2014-12-151-0/+2
| | | | also make sure we really test THIS lib, not the builtin one in stdlib.
* hack the tests to not have failures on py 2.3 and 3.xbaserock/morphThomas Waldmann2011-03-311-2/+7
|
* fix Python 3.1 compatibility, 1 test failure see note belowThomas Waldmann2011-03-301-1/+5
| | | | | | | | 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".
* make most tests work on python 2.3Thomas Waldmann2011-03-271-0/+24
|
* make tests work on python 2.4Thomas Waldmann2011-03-271-1/+2
|
* make tests work on python 2.5Thomas Waldmann2011-03-271-25/+21
|
* make tests work on python 2.6Thomas Waldmann2011-03-261-5/+6
|
* add files from python 2.7.1 (Python License)Thomas Waldmann2011-03-261-0/+4349
|
* licensing issues: we need a clean restart here - remove everythingThomas Waldmann2011-03-261-4206/+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.
* Better error messages for errors like type='int'. This actually caught a bug ↵steven.bethard2010-02-281-1/+4
| | | | 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-0/+20
|
* Deprecate ArgumentParser(..., version=XXX, ...) as well as format_version() ↵steven.bethard2010-02-281-0/+15
| | | | and print_version(). These should be replaced with .add_argument(..., action='version', ...).
* Try to be more robust in tests for non .py files (.pyc and variants).steven.bethard2010-02-281-2/+2
|
* Namespace objects now support "in" (__contains__).steven.bethard2010-02-281-27/+62
| | | | 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/+33
| | | | parsing behavior.
* Fix bug where --si=64 was deemed ambiguous when both --si and --size were in ↵steven.bethard2009-12-071-0/+19
| | | | the parser.
* Add support for nargs='...', which allows emulation of command lines like ↵steven.bethard2009-12-061-0/+13
| | | | "python [options] file [arguments]".
* Add get_default method.steven.bethard2009-12-061-0/+23
|
* Allow better custom type error messages using ArgumentTypeError.steven.bethard2009-10-241-0/+22
|
* Support more customization of version arguments.steven.bethard2009-10-241-0/+11
|
* Better error messages when 'dest' occurs twice for positional argumentssteven.bethard2009-10-241-0/+11
|
* Better error messages for invalid actions.steven.bethard2009-10-241-2/+10
|
* Fix bug where options with a single letter were being considered as numbers.steven.bethard2009-10-091-0/+17
|
* Add missing comma in __all__ declaration.steven.bethard2009-09-301-0/+11
|
* Fix encoding test. Boy, let's see if I can ever get this right. ;-)steven.bethard2009-09-161-1/+1
|
* Fix encoding test.steven.bethard2009-09-161-3/+1
|
* Fix issue where test was reading in .pyc file instead of .py file.steven.bethard2009-09-151-2/+9
|
* Fix a bug that was preventing % from being used in help messages.steven.bethard2009-09-131-2/+32
|
* Fix some spacing and indentation.steven.bethard2009-09-121-32/+49
|
* Fix bug with long prog= values.steven.bethard2009-09-121-4/+94
|
* Extra tests from 4kir4.1i.steven.bethard2009-09-121-0/+94
|
* Silence Python 2.6 buggy warnings about Exception.message.steven.bethard2009-09-121-0/+8
|
* Fix bug where classic classes were being rejected as type= arguments.steven.bethard2009-09-121-5/+24
|
* Fix bug with mutually exclusive groups in parent= parsers.steven.bethard2009-09-121-0/+29
|
* Set svn:eol-style=native for all .py files.steven.bethard2009-09-121-3674/+3674
|
* Spaces now only signal a positional if the argument string doesn't start ↵steven.bethard2009-07-261-1/+3
| | | | with an optional declared in the parser.
* Allow subparsers to take title= and description= parameters.steven.bethard2009-07-261-0/+30
|
* Allow tuples for metavars.steven.bethard2009-07-131-0/+27
|
* Add ArgumentDefaultsHelpFormatter.steven.bethard2009-07-131-0/+41
|
* Fix tests to write files to temp directory.steven.bethard2009-07-121-4/+9
| | | | 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-12/+47
| | | | the syntax ``@file``.
* Add support for parse_known_args.steven.bethard2009-06-141-1/+25
|
* Allow None as the first argument to ArgumentError.steven.bethard2009-06-141-0/+11
|
* Make append* actions copy their default value.steven.bethard2009-05-041-0/+27
| | | | | 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-4/+25
|
* Fix bug with wrapping mutually exclusive groups in the usage message.steven.bethard2009-04-301-0/+46
|
* Add support for empty string arguments and arguments that contain spaces.steven.bethard2009-04-201-2/+20
|
* Clean up comment.steven.bethard2009-04-201-3/+3
|
* Python 3.0 support.steven.bethard2009-03-291-220/+146
|