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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 130f4ec9313f7b9e02fc1fb26e543d74376274977923ed7ca73ed8ecbbb5a474 |
|
MD5 | 4854377f0e6a25053f036f0ac4a4ecdd |
|
BLAKE2b-256 | c7147661bc6a0176dd724773a15e966acd5894d39c8a1e724d99e071afa8c7f9 |
Close
Hashes for argparse_extensions-1.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55f0ac3fc5d903629404bbc8bec3a51e58a25c504b5d4a0aa48cd69a109f4132 |
|
MD5 | 5daf5bcb460ef6f2f011a193fa237c78 |
|
BLAKE2b-256 | 8b1bcb75db114c43e1b4fe064b1a4202a6d9eea1b74d34894a74840d7136dacd |