dotnet / dotnet/command-line-api

Arity for command arguments are not validated when there are child commands

Open
#1,151 12 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.