Powerful Command line parser

P

PyPK

Is there a Command line parser in python that can:
1. resolve conflicts
2. specify something like requires
3. and be smart

for ex:
python test.py --a --b --c --d

Case 1:
If 'a' is an option 'b' or 'c' cannot be specified.

Case 2:
atleast one option should be specified

Case 3:
IF 'a' and 'c' are given then 'd' has to be given

or many such cases.

I was wondering as this is a very common problem there if there is a
module that could do these things .
'optparse' is not this smart I guess.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top