Skip to content

About

opinionated, simple arg parsing

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

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

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages