private bool Authenticate(Options options) { if (string.IsNullOrEmpty(options.Name)) { WriteErrorLine("Rbac name is required. Please use -n <name>"); return(false); } if (string.IsNullOrEmpty(options.Password)) { WriteErrorLine("Rbac password is required. Please use -p <password>"); return(false); } Rbac = Rbac.GetRbac(options.Name); return(Rbac.Authenticate(options.Password)); }