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.2.tar.gz
(2.5 kB
view details)
File details
Details for the file clibuilder-0.1.2.tar.gz
.
File metadata
- Download URL: clibuilder-0.1.2.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2da1b2b369d8721efd254640c0376b4182567b9dd90f4d50e73eb5d0ec313d4a |
|
MD5 | 0f4da5cd115bb5b3712c9e58b10ce3d2 |
|
BLAKE2b-256 | b5dee2c12ee4b895ef82efcbd3bb79dbf254834d4c7022a2f29e6441613beec3 |