argopt icon indicating copy to clipboard operation
argopt copied to clipboard

No "command" support?

Open sjpb opened this issue 7 years ago • 3 comments

argopt doesn't appear to support docopt's "command" format:

Usage: script.py run <arg>

results in

File "<...>\site-packages\argopt\_docopt.py", line 119, in __
repr__
    self.value, self.type)
AttributeError: 'Command' object has no attribute 'type'

sjpb avatar Sep 18 '18 19:09 sjpb

PS argopt is an awesome idea, thanks for developing it. I'm trying to use it in anger so I have uncovered a few issues, let me know how interested you are in having them.

sjpb avatar Sep 18 '18 19:09 sjpb

thanks @sjpb - there are a few things mentioned in the docs TODO. Happy to accept issues and pull requests.

casperdcl avatar Sep 18 '18 19:09 casperdcl

would need https://docs.python.org/2/library/argparse.html#sub-commands

casperdcl avatar Sep 18 '18 22:09 casperdcl