I see in the help builder that an argument used in multiple commands is flagged as optional in usage help
|
bool IsOptional(Argument argument) => |
bool IsOptional(Argument argument) =>
IsMultiParented(argument) ||
argument.Arity.MinimumNumberOfValues == 0;
Is there a reason for this? We reuse arguments when it makes sense between commands, and they are still required.
I believe this is a bug unless I'm missing something
I see in the help builder that an argument used in multiple commands is flagged as optional in usage help
command-line-api/src/System.CommandLine/Help/HelpBuilder.cs
Line 332 in 55dbf39
Is there a reason for this? We reuse arguments when it makes sense between commands, and they are still required.
I believe this is a bug unless I'm missing something