Skip to main content

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

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

argparse-extensions-1.0.3.tar.gz (1.6 kB view details)

Uploaded Source

Built Distribution

argparse_extensions-1.0.3-py2.py3-none-any.whl (2.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file argparse-extensions-1.0.3.tar.gz.

File metadata

File hashes

Hashes for argparse-extensions-1.0.3.tar.gz
Algorithm Hash digest
SHA256 9297ebcb86133c7e359cb7639dbba80a58712797b1fdab974c75053f26b993a7
MD5 c93b159d6d1da1e6c1faab14ad1d1bd3
BLAKE2b-256 c7f53f2960d89b6d79486b1777246865475f5c6abaa12fea16c152085b966f8c

See more details on using hashes here.

File details

Details for the file argparse_extensions-1.0.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for argparse_extensions-1.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 40412bac635cbe8fca782c3acc0b311f57cc1d80abc7e57fb7186b35e9d892c2
MD5 7c72a8cadc12c1a33e57e2bfd670f819
BLAKE2b-256 f1e81207c1109e3035882f64edcae1afa9bec531e0bde7723ee7c6177ab3235b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page