53 references to HasValue
dotnet-dev-certs (53)
Program.cs (52)
125var reporter = new ConsoleReporter(PhysicalConsole.Singleton, verbose.HasValue(), quiet.HasValue()); 128if (verbose.HasValue()) 137if (checkJsonOutput.HasValue()) 139if (exportPath.HasValue() || trust?.HasValue() == true || format.HasValue() || noPassword.HasValue() || check.HasValue() || clean.HasValue() || 140(!import.HasValue() && password.HasValue()) || 141(import.HasValue() && !password.HasValue())) 148if (clean.HasValue()) 150if (exportPath.HasValue() || trust?.HasValue() == true || format.HasValue() || noPassword.HasValue() || check.HasValue() || checkJsonOutput.HasValue() || 151(!import.HasValue() && password.HasValue()) || 152(import.HasValue() && !password.HasValue())) 159if (check.HasValue()) 161if (exportPath.HasValue() || password.HasValue() || noPassword.HasValue() || clean.HasValue() || format.HasValue() || import.HasValue() || checkJsonOutput.HasValue()) 168if (!clean.HasValue() && !check.HasValue()) 170if (password.HasValue() && noPassword.HasValue()) 176if (noPassword.HasValue() && !(format.HasValue() && string.Equals(format.Value(), "PEM", StringComparison.OrdinalIgnoreCase))) 182if (import.HasValue()) 189if (check.HasValue()) 194if (clean.HasValue()) 197if (cleanResult != Success || !import.HasValue()) 205if (checkJsonOutput.HasValue()) 331if (trust != null && trust.HasValue()) 337if (verbose == null || !verbose.HasValue()) 383var certificates = manager.ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, exportPath.HasValue()); 399var isTrustOptionSet = trust?.HasValue() == true; 427if (exportFormat.HasValue() && !Enum.TryParse(exportFormat.Value(), ignoreCase: true, out format)) 438password.HasValue() || (noPassword.HasValue() && format == CertificateKeyExportFormat.Pem), 440exportFormat.HasValue() ? format : CertificateKeyExportFormat.Pfx);
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (1)
100return HasValue() ? Values[0] : null;