Skip to content

Commit

Permalink
Make command parsing case insensitive (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
Trenly committed Apr 11, 2022
1 parent bf4d9db commit 88eb0f3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/WingetCreateCLI/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ private static async Task<int> Main(string[] args)
string arguments = string.Join(' ', Environment.GetCommandLineArgs());
Logger.Trace($"Command line args: {arguments}");

Parser myParser = new Parser(config => config.HelpWriter = null);
Parser myParser = new Parser(config =>
{
config.HelpWriter = null;
config.CaseSensitive = false;
});

var types = new Type[] { typeof(NewCommand), typeof(UpdateCommand), typeof(SubmitCommand), typeof(SettingsCommand), typeof(TokenCommand), typeof(CacheCommand) };
var parserResult = myParser.ParseArguments(args, types);
Expand Down

0 comments on commit 88eb0f3

Please sign in to comment.