El 04/08/13 04:10, Francois Lafont escribió:
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.
I think you are looking for exclusive groups: http://docs.python.org/2.7/library/argparse.html#argparse.add_mutually_exclusive_group HTH -- http://mail.python.org/mailman/listinfo/python-list