From 87eeaf2ae77243e03e6b632f52d66d72bee50e2a Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 12 May 2017 10:27:03 -0400 Subject: [PATCH] args validation --- src/Console/Program.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Console/Program.cs b/src/Console/Program.cs index e42951a4..738250e6 100644 --- a/src/Console/Program.cs +++ b/src/Console/Program.cs @@ -101,6 +101,13 @@ namespace Bit.Console if(_usingArgs) { + if(_args.Length != 3) + { + Con.ForegroundColor = ConsoleColor.Red; + Con.WriteLine("Invalid arguments."); + Con.ResetColor(); + } + email = _args[1]; masterPassword = _args[2]; }