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
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
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