argparse extensions
Project description
# argparse-extensions
[`argparse`](https://docs.python.org/3/library/argparse.html) extensions.
## Installation
pip install argparse-extensions
## Usage
`action=argparse_extensions.NegatableStoreTrueAction` is a drop-in replacement
for `action='store_true'`:
parser = argparse.ArgumentParser()
parser.add_argument(
'--foo',
action=argparse_extensions.NegatableStoreTrueAction)
This will handle `--no-foo` in addition to `--foo`.
## License
Licensed under the [MIT License](http://www.opensource.org/licenses/MIT).
[`argparse`](https://docs.python.org/3/library/argparse.html) extensions.
## Installation
pip install argparse-extensions
## Usage
`action=argparse_extensions.NegatableStoreTrueAction` is a drop-in replacement
for `action='store_true'`:
parser = argparse.ArgumentParser()
parser.add_argument(
'--foo',
action=argparse_extensions.NegatableStoreTrueAction)
This will handle `--no-foo` in addition to `--foo`.
## License
Licensed under the [MIT License](http://www.opensource.org/licenses/MIT).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for argparse-extensions-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a033bdba6ebdfc07ea7fb77455c7e409cbd3b16f4a83f543b017de4558078f82 |
|
MD5 | f1cb10c471902b7022210c8ca9cb20c6 |
|
BLAKE2b-256 | f8680d15cefd8f7ec3cfd3c93466895fb4d42a2b79e55b41766f1122b200ee59 |
Close
Hashes for argparse_extensions-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3846119f3b6f828ce72f340e804cbf1e0bd1d20cf3c9f599547363199b6ea9fe |
|
MD5 | 365f0fb95fab498e4c76eb37670e71ac |
|
BLAKE2b-256 | f91e59b65a9fee3468f77f6aff95500297254e28a73e0ddcd8ce9c661312cc5e |