argcompile
is a Python package made to improve native argparse
command-line parsing library by include some design classes that allows defining post-processing of supplied arguments. Check package description for more information and examples.
Make sure you have at least Python 3.6 installed:
$ python3 --version
python 3.6.0
Since, from this version, pip already comes together with Python, you'll be able to download package latest release available in PyPI:
pip3 install argcompile
This tool was developed after reach an argparse
limitation that is actually an old-dated reported issue and has already a huge refactor solution proposed in which argcompile
was based on.
@hpaulj's proposal modifies the standard library making it more flexible to be extended, considering several usage situations and code improvements. argcompile
otherwise implements a flavor of this mechanisms without much concern and with a simpler and limited approach.