fixed not being able to specify user as argument when using 'add' action
This commit is contained in:
parent
193dd40bc0
commit
ecf440ef55
1 changed files with 7 additions and 4 deletions
|
@ -121,7 +121,7 @@ public static class Program
|
|||
Console.WriteLine(Decrypt());
|
||||
break;
|
||||
case "setup":
|
||||
Setup();
|
||||
Setup(user);
|
||||
break;
|
||||
default:
|
||||
Console.WriteLine("error: Unknown action: {0}", action);
|
||||
|
@ -299,13 +299,16 @@ public static class Program
|
|||
return true;
|
||||
}
|
||||
|
||||
static void Setup()
|
||||
static void Setup(string username = "")
|
||||
{
|
||||
if (Verbose) Console.WriteLine("Opening manifest...");
|
||||
Manifest = Manifest.GetManifest(true);
|
||||
|
||||
if (string.IsNullOrWhiteSpace(username))
|
||||
{
|
||||
Console.Write("Username: ");
|
||||
var username = Console.ReadLine();
|
||||
username = Console.ReadLine();
|
||||
}
|
||||
Console.Write("Password: ");
|
||||
var password = Console.ReadLine();
|
||||
|
||||
|
|
Loading…
Reference in a new issue