Skip to content

Commit

Permalink
chore: ignore unknown arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
goaaats committed Sep 24, 2022
1 parent 29a26b3 commit a6bc158
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/XIVLauncher/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,11 @@ private void App_OnStartup(object sender, StartupEventArgs e)
try
{
var helpWriter = new StringWriter();
var parser = new Parser(config => config.HelpWriter = helpWriter);
var parser = new Parser(config =>
{
config.HelpWriter = helpWriter;
config.IgnoreUnknownArguments = true;
});
var result = parser.ParseArguments<CmdLineOptions>(Environment.GetCommandLineArgs());

if (result.Errors.Any())
Expand Down

0 comments on commit a6bc158

Please sign in to comment.