On 03/23/2013 10:04 AM, Marco wrote:
> Is there the possibility using the argparse module to group two or more
> arguments in order to have at least one of them required? For instance,
> I would like to have not an error only in the following cases:
>
>python finder.py --file myfile --dir my
On 03/23/2013 05:27 PM, Rob Day wrote:
I don't know about argparse, but if you use docopt
(http://docopt.org/) then this is easy to do with something like:
"""Usage:
finder.py --file --dir
finder.py --pattern --dir
finder.py --file --pattern --dir
"""
Thanks Rob, but I was looking for
I don't know about argparse, but if you use docopt
(http://docopt.org/) then this is easy to do with something like:
"""Usage:
finder.py --file --dir
finder.py --pattern --dir
finder.py --file --pattern --dir
"""
On 23 March 2013 16:04, Marco wrote:
> Is there the possibility using the a