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

All options optional in one of sets #933

Open
petrparik opened this issue Jul 23, 2024 · 1 comment
Open

All options optional in one of sets #933

petrparik opened this issue Jul 23, 2024 · 1 comment

Comments

@petrparik
Copy link

Describe the bug
I have two parameter sets. One has only one option, bool list, works fine:

mytool new --list # works fine

The other set works fine, while it has at least one required option

mytool new --template "default"

But I want all the options in my second set to be optional. I'd like to run

mytool new

and expect the second set is picked up, with "template" option set to "default". I cannot achieve it.

To Reproduce
https://dotnetfiddle.net/VE1xFs

Expected behavior
When one of the sets has all options optional, with defaults, it is automatically picked when no command-line arguments are provided.

@JenCT10
Copy link

JenCT10 commented Aug 13, 2024

still need help to achieve what you want?

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