> 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. You can probably do something similar using sub commands (http://docs.python.org/2/library/argparse.html#sub-commands). -- http://mail.python.org/mailman/listinfo/python-list
- [argparse] mutually exclusive group with 2 sets o... Francois Lafont
- Re: [argparse] mutually exclusive group with... Francois Lafont
- Re: [argparse] mutually exclusive group ... Joshua Landau
- Re: [argparse] mutually exclusive group with... Miki Tebeka
- RE: [argparse] mutually exclusive group ... Joseph L. Casale
- Re: [argparse] mutually exclusive group ... Francois Lafont
- Re: [argparse] mutually exclusive group with... Rafael Durán Castañeda
- RE: [argparse] mutually exclusive group ... Joseph L. Casale
- Re: [argparse] mutually exclusive group with... Francois Lafont
- Re: [argparse] mutually exclusive group ... Francois Lafont
- Re: [argparse] mutually exclusive gr... Francois Lafont