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

Support case insensitive name matching

Open Alienmario opened this issue 5 months ago • 2 comments

This is a simple request for case insensitive name matching for commands / options.

I want to use CliNameCasingConvention.CamelCase for better help readability, but still accept lowercase inputs.

Alienmario avatar Jul 27 '25 14:07 Alienmario

This because System.CommandLine itself is case sensitive. You can manually add aliases for this, however we can add all lowercase version of the alias automatically (though we can't handle mixed case versions).

calacayir avatar Jul 31 '25 09:07 calacayir

Perhaps you could add an aliasing variant of NameCasingConvention (NameCasingConventionAliases?). Anyways, since System.CommandLine doesn't support this, feel free to close if you feel like this is overreaching.

Alienmario avatar Aug 02 '25 11:08 Alienmario