mirror of
https://github.com/araxiaonline/WoW-Launcher.git
synced 2026-06-13 01:22:21 -04:00
Small change to command line handler
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user