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

Conditional args ? #82

Open
pfeatherstone opened this issue Jan 9, 2020 · 1 comment
Open

Conditional args ? #82

pfeatherstone opened this issue Jan 9, 2020 · 1 comment

Comments

@pfeatherstone
Copy link

Depending on a parent option value, is it possible to make children options required or not? (other than by adding additional checks after ArgumentParser::ParseCLI)

@Taywee
Copy link
Owner

Taywee commented Jan 9, 2020

Either that or write a group validator that takes order into account. The manual method is probably the simplest, though.

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