470,811 Members | 1,160 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,811 developers. It's quick & easy.

Powerful Command line parser

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.

Apr 21 '06 #1
0 749

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Boogie El Aceitoso | last post: by
4 posts views Thread by Greg B | last post: by
2 posts views Thread by PyPK | last post: by
6 posts views Thread by 31337one | last post: by
16 posts views Thread by John Salerno | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.