Closed sjpb closed 5 years ago
docopt supports both ARG and <arg> to define arguments. It appears that argopt only allows the latter (although I think that's not documented?)
ARG
<arg>
e.g.: Usage: script.py ARG with: python script.py a docopt: {'ARG': 'a'} argopt:
Usage: script.py ARG
python script.py a
{'ARG': 'a'}
usage: script.py [-h] script.py: error: unrecognized arguments: a
docopt supports both
ARG
and<arg>
to define arguments. It appears that argopt only allows the latter (although I think that's not documented?)e.g.:
Usage: script.py ARG
with:python script.py a
docopt:{'ARG': 'a'}
argopt: