Skip to main content

CLI builder using argparse.ArgumentParser-like interface

Project description


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 `` 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.7.tar.gz (2.7 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page