command-line icon indicating copy to clipboard operation
command-line copied to clipboard

Improve missing argument message

Open Alienmario opened this issue 5 months ago • 1 comments

I am just starting using this library, so excuse me if I'm missing something, but:

The error message for missing arguments is surprisingly unhelpful

Required argument missing for command: 'commandname'.

This line is repeated for the amount of required arguments. It does not say anything about the required arguments nor provides any hints for corrective action. I have also not found a customization option.

In case the root command has any required arguments (as in the first usage example), this will be the first thing an end user sees when running the program.

Alienmario avatar Jul 27 '25 00:07 Alienmario

These error messages come from System.CommandLine, maybe we can update them with better messages.

calacayir avatar Jul 31 '25 09:07 calacayir