I am using the docopt library.
I couldn't find out the way to accomplish the following requirement:
The docstring is:
"""
aTXT tool
Usage:
aTXT <source>... [--ext <ext>...]
Options:
--ext message
"""
From the shell, I want to write something like this:
atxt a b c --ext e f g
The result dictionary from docopt
output is the following:
{'--ext': True,
'<ext>': [],
'<source>': ['a', 'b', 'c', 'e', 'f']}
But, I need it to be the following:
{'--ext': True,
'<ext>': ['e', 'f', 'g'],
'<source>': ['a', 'b', 'c']}
How do I proceed?