casperdcl / argopt

convert docopt to argparse
https://pypi.python.org/pypi/argopt
Other
21 stars 2 forks source link

ARG vs <arg> format #5

Closed sjpb closed 5 years ago

sjpb commented 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?)

e.g.: Usage: script.py ARG with: python script.py a docopt: {'ARG': 'a'} argopt:

usage: script.py [-h]
script.py: error: unrecognized arguments: a