53 references to HasValue
dotnet-dev-certs (53)
Program.cs (52)
124var reporter = new ConsoleReporter(PhysicalConsole.Singleton, verbose.HasValue(), quiet.HasValue()); 127if (verbose.HasValue()) 136if (checkJsonOutput.HasValue()) 138if (exportPath.HasValue() || trust?.HasValue() == true || format.HasValue() || noPassword.HasValue() || check.HasValue() || clean.HasValue() || 139(!import.HasValue() && password.HasValue()) || 140(import.HasValue() && !password.HasValue())) 147if (clean.HasValue()) 149if (exportPath.HasValue() || trust?.HasValue() == true || format.HasValue() || noPassword.HasValue() || check.HasValue() || checkJsonOutput.HasValue() || 150(!import.HasValue() && password.HasValue()) || 151(import.HasValue() && !password.HasValue())) 158if (check.HasValue()) 160if (exportPath.HasValue() || password.HasValue() || noPassword.HasValue() || clean.HasValue() || format.HasValue() || import.HasValue() || checkJsonOutput.HasValue()) 167if (!clean.HasValue() && !check.HasValue()) 169if (password.HasValue() && noPassword.HasValue()) 175if (noPassword.HasValue() && !(format.HasValue() && string.Equals(format.Value(), "PEM", StringComparison.OrdinalIgnoreCase))) 181if (import.HasValue()) 188if (check.HasValue()) 193if (clean.HasValue()) 196if (cleanResult != Success || !import.HasValue()) 204if (checkJsonOutput.HasValue()) 330if (trust != null && trust.HasValue()) 336if (verbose == null || !verbose.HasValue()) 382var certificates = manager.ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, exportPath.HasValue()); 398var isTrustOptionSet = trust?.HasValue() == true; 426if (exportFormat.HasValue() && !Enum.TryParse(exportFormat.Value(), ignoreCase: true, out format)) 437password.HasValue() || (noPassword.HasValue() && format == CertificateKeyExportFormat.Pem), 439exportFormat.HasValue() ? format : CertificateKeyExportFormat.Pfx);
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (1)
100return HasValue() ? Values[0] : null;