Skip to main content

CLI builder using argparse.ArgumentParser-like interface

Project description

anrosent

This module provides a class `cli.CLI` that simplifies writing Command Line Interfaces for applications. It uses the `argparse` module from the CPython standard library, which provides great help/error messaging, as well as argument validation. You can find a decorator-based alternative in `flask.ext.script.Manager`, but here I’ve tried to emulate the `argparse.ArgumentParser` interface, with the bonus of no external dependencies.

### Example

See `example.py` for a great intro.

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

clibuilder-0.1.1.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file clibuilder-0.1.1.tar.gz.

File metadata

  • Download URL: clibuilder-0.1.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for clibuilder-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b16a8c88fb23964429c119c3c7d3e871c71d3ee56b40cd5845e15a5a5661c45e
MD5 9c45a2dba8614ef965f95d9e259cf264
BLAKE2b-256 c90866a1f81e5d8b55e28dfb940fcda6eebf75ba898050fbb7a2a6d3ff34006b

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