argparse extensions
Project description
argparse-extensions
argparse
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
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
File details
Details for the file argparse-extensions-1.0.3.tar.gz
.
File metadata
- Download URL: argparse-extensions-1.0.3.tar.gz
- Upload date:
- Size: 1.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9297ebcb86133c7e359cb7639dbba80a58712797b1fdab974c75053f26b993a7 |
|
MD5 | c93b159d6d1da1e6c1faab14ad1d1bd3 |
|
BLAKE2b-256 | c7f53f2960d89b6d79486b1777246865475f5c6abaa12fea16c152085b966f8c |
File details
Details for the file argparse_extensions-1.0.3-py2.py3-none-any.whl
.
File metadata
- Download URL: argparse_extensions-1.0.3-py2.py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40412bac635cbe8fca782c3acc0b311f57cc1d80abc7e57fb7186b35e9d892c2 |
|
MD5 | 7c72a8cadc12c1a33e57e2bfd670f819 |
|
BLAKE2b-256 | f1e81207c1109e3035882f64edcae1afa9bec531e0bde7723ee7c6177ab3235b |