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

Set default option value to required option value? #1530

Closed
paul-uz opened this issue May 25, 2021 · 2 comments
Closed

Set default option value to required option value? #1530

paul-uz opened this issue May 25, 2021 · 2 comments

Comments

@paul-uz
Copy link

paul-uz commented May 25, 2021

I have some required options and optional options.

Is there a way I can set a default value of an optional option to that of a required option?

Or is there a way to define conditional options? EG

  • if option A is set, dont allow option B
  • if option B is set, required option C as well
@shadowspawn
Copy link
Collaborator

Commander does not directly support interactions between options.

The related open issue is: #1358

@shadowspawn
Copy link
Collaborator

An answer was provided, and no further activity in a month. There is still an open issue about "implied" which has been the most popular variation.

Feel free to open a new issue if it comes up again, with new information and renewed interest.

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