dotnet / dotnet/command-line-api
Arity for command arguments are not validated when there are child commands
Open
needs documentation
waiting-on-feedback
- Dominant language
- C#
- Stars
- 3.7k
- Forks
- 428
- PR merge metrics
- No merged PRs in 30d
Description
When I specify a command argument as required (using `arg.Arity = ArgumentArity.ExactlyOnce`) on a command that has sub-commands, the arity is not validated when invoking any of the subcommands. They are only validated when the command is being invoked directly.
Contributor guide
Assessment
This issue has not been assessed yet.