[Tutor] Groups of mutually exclusive options

Alex Kleider akleider at sonic.net
Tue Apr 22 02:37:28 CEST 2014


On 2014-04-21 14:05, rail shafigulin wrote:
> Does anybody know if there is a way to specify groups of mutually 
> exclusive
> options using argparse module?
> 

As someone pointed out on this list some months ago, you might want to 
consider using docopt instead of argparse.  It is much more in keeping 
with the SPoL philosophy of Unix.

http://docopt.org/
SPoL:  Single Point of Light- see Eric Raymond's book 
http://en.wikipedia.org/wiki/The_Art_of_Unix_Programming


More information about the Tutor mailing list