Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grouping Requirements #62

Open
JREAM opened this issue Jun 6, 2016 · 1 comment
Open

Grouping Requirements #62

JREAM opened this issue Jun 6, 2016 · 1 comment

Comments

@JREAM
Copy link

JREAM commented Jun 6, 2016

I know you can require single commands, eg:

$command->option('t')->require(true);
$command->option('b')->require(true);

Is it possible to do something like this:

$command->option('t')->requireOr('b');
$command->option('b')->requireOr('t');

$command->option('t')->requireAndOr('b');
$command->option('b')->requireAndOr('t');
@NeoVance
Copy link
Contributor

This is possible using a must callback believe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants