mirror of
https://github.com/bitwarden/directory-connector
synced 2025-12-15 07:43:27 +00:00
args validation
This commit is contained in:
@@ -101,6 +101,13 @@ namespace Bit.Console
|
|||||||
|
|
||||||
if(_usingArgs)
|
if(_usingArgs)
|
||||||
{
|
{
|
||||||
|
if(_args.Length != 3)
|
||||||
|
{
|
||||||
|
Con.ForegroundColor = ConsoleColor.Red;
|
||||||
|
Con.WriteLine("Invalid arguments.");
|
||||||
|
Con.ResetColor();
|
||||||
|
}
|
||||||
|
|
||||||
email = _args[1];
|
email = _args[1];
|
||||||
masterPassword = _args[2];
|
masterPassword = _args[2];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user