argparse - python

view story

http://serverfault.com – In a python script I want to have three positional arguments and two optional arguments(including 'help'). So my need is like following Correct: ./myscript.py ONE TWO THREE ./myscript.py --list Incorrect: ./myscript.py ONE TWO THREE --list I want to make all positional argument and the optional argument as mutual exclusive using argparse itself. (HowTos)