fixing arg bug

This commit is contained in:
John Pavlick 2024-08-18 12:35:58 +03:00
parent e977bad595
commit a5db13efcd
No known key found for this signature in database

View File

@ -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.");