diff options
| author | Laurence Miao <laurence.miao@gmail.com> | 2012-10-06 21:08:14 +0800 |
|---|---|---|
| committer | Laurence Miao <laurence.miao@gmail.com> | 2012-11-15 14:18:50 +0800 |
| commit | 5f564b24be4592c5212c492e6d67d9f4616229d2 (patch) | |
| tree | e5af1ff3d589701593e809fc8fcc90c1a94a1b72 /openstack/common/plugin/callbackplugin.py | |
| parent | d6fa3847cc64f6815641cdb549dd100e1aab6043 (diff) | |
| download | oslo-5f564b24be4592c5212c492e6d67d9f4616229d2.tar.gz oslo-5f564b24be4592c5212c492e6d67d9f4616229d2.tar.xz oslo-5f564b24be4592c5212c492e6d67d9f4616229d2.zip | |
argparse support for cfg
* openstack/common/cfg.py
Optparse is fading out since python 2.7, this
patch will help openstack/common work on more
advanded version of python(argparse).
Now, disable_interspersed_args() has no effect.
Added new method add_cli_subparsers, return
argparse subparser, for usages such as
subcommand.
* tests/unit/test_cfg.py
SubcommandTestCase added.
Disabled test_disable_interspersed_args test entry
for happiness of tox, temporarily.
Modified test_help for port of argparse.
* tools/pip-requires
include argparse module for python 2.6
Change-Id: Ie5cbde1a92a92786d64dea0ddfcfbf288c29f960
Diffstat (limited to 'openstack/common/plugin/callbackplugin.py')
0 files changed, 0 insertions, 0 deletions
