Source Package: python-argh (0.31.3-1.8)
An argparse wrapper
This Python module provides a wrapper for argparse with support for hierarchical commands that can be bound to modules or classes. 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 (though they are of course used under the hood); * infer agrument type from the default value; * infer command name from function name; * add an alias root command help for the --help argument; * enable passing unwrapped arguments to certain functions instead of a argparse.Namespace object. Argh is fully compatible with argparse. argh-agnostic and argh-aware code can be mixed. Keep in mind that argh.dispatch does some extra work that a custom dispatcher may not do.
Package information
- Homepage
- [https://github.com/neithere/argh/]
- License
- LGPL-3.0-or-later
- Mantenedor del paquete downstream
- Desconocido: no consta en la fuente indexada
The following binary packages are built from this source package:
- python313-argh
An argparse wrapper
- python314-argh
An argparse wrapper
