Skip to content

allura-org/argumentative

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🗣️ argumentative

simple, opinionated command line parser

features

  • simple, opinionated
  • automatically generates help and usage messages
  • uses msgspec for structs and type coercion
  • secret fourth feature

usage

pip install argumentative
from argumentative import argumentative

@argumentative
class Args:
    config: str # path to a config file
    verbose: bool = False # whether to print verbose output

args = Args.from_args()
print(args)
python basic.py config.json --verbose
# Args(config='config.json', verbose=True)

python basic.py --help
# basic.py - example of using argumentative
#
# Options:
# --config <str> - path to a config file
# --verbose <bool> - whether to print verbose output

license

hippocratic license 3.0. (c) allura-org

About

opinionated, simple arg parsing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages