[argparse] mutually exclusive group with 2 sets of options

Francois Lafont francois.lafont at nospam.invalid
Sat Aug 3 22:10:35 EDT 2013


Hi,

Is it possible with argparse to have this syntax for a script?

my-script (-a -b VALUE-B | -c -d VALUE-D)

I would like to do this with the argparse module.

Thanks in advance.


-- 
François Lafont



More information about the Python-list mailing list