Skip to main content

Cli Override

Project description

Code style: black

This library lets you pass arbitrary over arguments from the cli like so:

from cli_override import parse_extra_args

args, unknown_args = parser.parse_known_args()
extra_args = parse_extra_args(unknown_args)

my_override_value = extra_args.get["my_override_flag"]

Invocation of your program with:

python my_script.py --x:my_override_flag 14

results in my_override_value being 14.

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

cli-override-0.0.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cli_override-0.0.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file cli-override-0.0.1.tar.gz.

File metadata

  • Download URL: cli-override-0.0.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for cli-override-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d4116dbcee93062615748e56f5ad8267931b43cc5c0e7563f72209890a446e24
MD5 8a011bbcbadda718fc7f4169555267d7
BLAKE2b-256 9d669be4a64c0926b82ae0a2dc42a097103f89fb0451f4068fc3a7e1da46b910

See more details on using hashes here.

File details

Details for the file cli_override-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: cli_override-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for cli_override-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c6ab3bfc22dafed6b614db478903c843a7ed6403cd11d2108da5e3dc82c178a2
MD5 ab552f7b14671c7986b4c0233eceb057
BLAKE2b-256 d33dce8814410a00057034f868a2a25d2f0b3ea46a3d5a28cc865b3eeefdea9d

See more details on using hashes here.

Supported by

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