1
0
mirror of https://github.com/bitwarden/directory-connector synced 2025-12-13 23:03:19 +00:00

args validation

This commit is contained in:
Kyle Spearrin
2017-05-12 10:27:03 -04:00
parent 2767ed9d96
commit 87eeaf2ae7

View File

@@ -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];
}