WIPACrepo / wipac-dev-tools

Common, basic, and reusable development tools
MIT License
0 stars 0 forks source link

`argparse_tools`: Auto-wrap `ArgumentTypeError` If Needed #43

Closed ric-evans closed 2 years ago

ric-evans commented 2 years ago

Example:

$ python ~/repos/wipac-dev-py-setup-action/setup_builder.py setuuuup.cfg wipacfoo/zoop  --license foo --base-keywords baz --directory-exclude baz
usage: setup_builder.py [-h] --base-keywords [BASE_KEYWORDS ...] --directory-exclude [DIRECTORY_EXCLUDE ...] --license LICENSE
                        setup_cfg_file github_full_repo
setup_builder.py: error: argument setup_cfg_file: FileNotFoundError('setup.cfg') [setuuuup.cfg]