mirror of
https://github.com/Unifi-Tools/UFiber.Configurator.git
synced 2025-02-05 18:28:28 +00:00
fixing arg bug
This commit is contained in:
parent
e977bad595
commit
a5db13efcd
|
@ -59,8 +59,9 @@ ScpClient GetSCPClient(string userName, string password, string host, int port =
|
||||||
|
|
||||||
rootCommand.Handler = CommandHandler
|
rootCommand.Handler = CommandHandler
|
||||||
.Create<string, string, string, int, bool, string, string, string, string, string>(
|
.Create<string, string, string, int, bool, string, string, string, string, string>(
|
||||||
(host, user, pw, port, dryRun, slid, vendor, serial, mac, fwToRestore) =>
|
(host, user, pw, port, dryRun, slid, vendor, serial, mac, restore) =>
|
||||||
{
|
{
|
||||||
|
var fwToRestore = restore;
|
||||||
if (string.IsNullOrWhiteSpace(host))
|
if (string.IsNullOrWhiteSpace(host))
|
||||||
{
|
{
|
||||||
Console.Error.WriteLine("Host is a required parameter and can't be empty.");
|
Console.Error.WriteLine("Host is a required parameter and can't be empty.");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user