Re: Powerful Command line parsers

2006-04-21 Thread Lawrence D'Oliveiro
In article <[EMAIL PROTECTED]>, John Machin <[EMAIL PROTECTED]> wrote: >To meet your specifications, the module would need to incorporate a >mini-language: > >if a and (b or c): nasty("blah 1") >if not (a or b or c or d): nasty("blah 2") >if a and c and not d: nasty("blah 3") Prolog-style predi

Re: Powerful Command line parsers

2006-04-21 Thread John Machin
On 22/04/2006 4:15 AM, PyPK wrote: > Is there a Command line parser in python that can: > 1. resolve conflicts > 2. specify something like requires > 3. and smart "... that can ... and smart" does not compute. > > for ex: > python test.py --a --b --c --d I'm used to seeing --fubar and -f; what

Powerful Command line parsers

2006-04-21 Thread PyPK
Is there a Command line parser in python that can: 1. resolve conflicts 2. specify something like requires 3. and 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 gi