fixed not being able to specify user as argument when using 'add' action

This commit is contained in:
Carson McManus 2016-08-27 18:10:49 -04:00
parent 193dd40bc0
commit ecf440ef55

View file

@ -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();