From 3c12772e7acd21866139b54f4260bc397dd8e88f Mon Sep 17 00:00:00 2001 From: Carson McManus Date: Thu, 25 Aug 2016 21:21:06 -0400 Subject: [PATCH] fixed a bug when running with the arguments: "" --- Program.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Program.cs b/Program.cs index 860d666..3423665 100644 --- a/Program.cs +++ b/Program.cs @@ -77,10 +77,10 @@ public static class Program { action = "generate-code"; } - continue; + else if (string.IsNullOrEmpty(user)) + user = args[i]; } - // its a username - if (string.IsNullOrEmpty(user)) + else if (string.IsNullOrEmpty(user)) user = args[i]; } }