mirror of
https://github.com/bitwarden/directory-connector
synced 2025-12-13 23:03:19 +00:00
args validation
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user