You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seem that to have an "optional" option it must have a default value assigned to parameter in the commands method signature. Otherwise the --help indicates them as (Required) Isn't a Required option more an Argument?
This mean that for any command any "optional" options all have to be at the end of the signature, whilst this is feasible, the --help is perhaps too technical - exposing facets of the underlying implementation.
Whist a string parameter could be nullable - string? param1 = null this results in the --help saying (Default: null) - which is kinda technical, and if alternatively one defines the parameter as string param1 = "" results in the --help saying (Default: "").
Additionally the option type if nullable are used is defined as --param <string?> tha tis also a tad technical.
If there was a way to say it's optional say, in part of the /// <param....></param> the help could just say (Optional) - or nothing (as it's already described as being part of Options:)?
An option is possibly required, dependent on the presence of other options, but this is also not configurable?
The text was updated successfully, but these errors were encountered:
I think it's unavoidable that the default outputs technical details, but
I agree that there are cases where you don't want to show them.
I'd like to make it possible to manually adjust the range a bit more.
It seem that to have an "optional" option it must have a default value assigned to parameter in the commands method signature. Otherwise the
--help
indicates them as(Required)
Isn't a Required option more an Argument?This mean that for any command any "optional" options all have to be at the end of the signature, whilst this is feasible, the --help is perhaps too technical - exposing facets of the underlying implementation.
Whist a string parameter could be nullable -
string? param1 = null
this results in the--help
saying(Default: null)
- which is kinda technical, and if alternatively one defines the parameter asstring param1 = ""
results in the--help
saying(Default: "")
.Additionally the option type if nullable are used is defined as
--param <string?>
tha tis also a tad technical.If there was a way to say it's optional say, in part of the
/// <param....></param>
the help could just say(Optional)
- or nothing (as it's already described as being part ofOptions:
)?An option is possibly required, dependent on the presence of other options, but this is also not configurable?
The text was updated successfully, but these errors were encountered: