Name : python311-argh
| |
Version : 0.31.2
| Vendor : openSUSE
|
Release : 1.5
| Date : 2024-01-30 13:20:53
|
Group : Unspecified
| Source RPM : python-argh-0.31.2-1.5.src.rpm
|
Size : 0.20 MB
| |
Packager : https://bugs_opensuse_org
| |
Summary : An argparse wrapper
|
Description :
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.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/openSUSE:/ALP:/Experimental:/Slowroll/base.20240605/repo/oss/noarch |