nategood / commando

An Elegant CLI Library for PHP
MIT License
798 stars 80 forks source link

Feture Request: conflictsWith (oppositive than needs) #88

Open mingtsay opened 6 years ago

mingtsay commented 6 years ago

Let's have

$cmd->flag('a')->boolean();
$cmd->flag('b')->boolean()->conflictsWith('c');
$cmd->flag('c')->boolean();

to get the following result: PASS: (no args), -a, -b, -c, -ab, -ac FAIL: -bc, -abc

(Please use thumb to +1 instead reply unless you are adding additional information.)