0 purchases
getargs 1.3
get_args
get args from command line, environment and configuration file.
https://packaging.python.org/tutorials/packaging-projects/
args definition:
example.yaml
a public_ip_api:
action: store
nargs: +
const:
default:
- http://www.myipaddress.com/
- https://www.ipip.net/
- http://20019.ip138.com/
type: !!python/name:builtins.list
choices:
required:
help: public http[s] api to get public ip
metavar: API
dest:
options:
prog: ''
usage: '%(prog)s [options]'
description: 'ddns_client'
epilog: 'generated by get_args.'
add_help: ''
allow_abbrev: true
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.