dotnet / command-line-api

Command line parsing, invocation, and rendering of terminal output.
https://github.com/dotnet/command-line-api/wiki
MIT License
3.34k stars 375 forks source link

Powderhouse - Fix 2392 Error Message #2415

Open Keboo opened 2 months ago

Keboo commented 2 months ago

Add additional error message to provide a good error message when the argument arity more than 1.

The previous error message was similar to "Option '-x' expects a single argument but 4 were provided." After this fix the error message is similar to: "Option '-x' expects at most 3 arguments but 4 were provided."