Small change to command line handler

This commit is contained in:
TOM_RUS
2022-02-03 01:11:17 +03:00
committed by Fabian König
parent 3b49c8cafa
commit 8441a79e7d
3 changed files with 4 additions and 4 deletions

View File

@@ -64,7 +64,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.DotNet.ILCompiler" Version="7.0.0-*" />
<PackageReference Include="runtime.win-x64.Microsoft.DotNet.ILCompiler" Version="7.0.0-*" />
<PackageReference Include="System.CommandLine.NamingConventionBinder" Version="2.0.0-*" />
<PackageReference Include="System.CommandLine" Version="2.0.0-*" />
</ItemGroup>
<ItemGroup>

View File

@@ -1,7 +1,7 @@
// Copyright (c) Arctium.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.CommandLine;
using System.CommandLine.Invocation;
using System.CommandLine.Parsing;
using static Arctium.WoW.Launcher.Misc.Helpers;
@@ -18,7 +18,7 @@ class Program
PrintHeader("WoW Client Launcher");
LaunchOptions.RootCommand.Handler = CommandHandler.Create((ParseResult parseResult) =>
LaunchOptions.RootCommand.SetHandler((ParseResult parseResult) =>
{
var appPath = Launcher.PrepareGameLaunch(parseResult);
var gameCommandLine = string.Join(" ", parseResult.UnmatchedTokens);

View File

@@ -2,7 +2,7 @@
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
global using System.Collections.Concurrent;
global using System.CommandLine.NamingConventionBinder;
global using System.CommandLine;
global using System.Diagnostics;
global using System.Runtime.CompilerServices;
global using System.Runtime.InteropServices;