python-argh 0.23.2-1 source package in Ubuntu
Changelog
python-argh (0.23.2-1) unstable; urgency=low * Imported Upstream version 0.23.2 * Canonicalize VCS-* field URI in debian/control -- Marco Nenciarini <email address hidden> Tue, 18 Jun 2013 11:37:49 +0200
Upload details
- Uploaded by:
- Marco Nenciarini
- Uploaded to:
- Sid
- Original maintainer:
- Marco Nenciarini
- Architectures:
- all
- Section:
- misc
- Urgency:
- Low Urgency
See full publishing history Publishing
Series | Published | Component | Section |
---|
Downloads
File | Size | SHA-256 Checksum |
---|---|---|
python-argh_0.23.2-1.dsc | 1.3 KiB | bb2af3a8993d5823b1d2ec154db3e03c50d64fff5b65315d5bd8e618a1e161cc |
python-argh_0.23.2.orig.tar.gz | 25.7 KiB | 7e7b41f7d6156da42e9643deea78fff09adb80672cd4d7e3da6d12a27d94407b |
python-argh_0.23.2-1.debian.tar.gz | 2.3 KiB | 11a4fd7a87fc1b2251b2495a7667cef67e45c315761942d09267a798a29aee7a |
Available diffs
- diff from 0.17.2-1 to 0.23.2-1 (37.1 KiB)
No changes file available.
Binary packages built by this source
- python-argh: simple argparse wrapper
Argh provides a very simple wrapper for argparse.
.
Argparse is a very powerful tool; argh just makes it easy to use.
.
Here’s a list of features that argh adds to argparse:
.
* mark a function as a CLI command and specify its arguments before
the parser is instantiated;
* nested commands made easy: no messing with subparsers;
* infer command name from function name;
* infer agrument type from the default value;
* infer argument action from the default value (for booleans);
* infer arguments from function signature;
* add an alias root command help for the --help argument;
* enable passing unwrapped arguments to certain functions instead of
an argparse.Namespace object.
.
Argh is fully compatible with argparse. You can mix argh-agnostic and
argh-aware code. Just keep in mind that dispatch() does some extra
work that a custom dispatcher may not do.