commandline icon indicating copy to clipboard operation
commandline copied to clipboard

All options optional in one of sets

Open petrparik opened this issue 1 year ago • 3 comments

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.

petrparik avatar Jul 23 '24 08:07 petrparik

still need help to achieve what you want?

JenCT10 avatar Aug 13 '24 22:08 JenCT10

still need help to achieve what you want?

This is pretty clear 😃:

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

schittli avatar Dec 01 '24 15:12 schittli

still need help to achieve what you want?

yes please

petrparik avatar Dec 03 '24 20:12 petrparik