53 references to HasValue
dotnet-dev-certs (53)
Program.cs (52)
125var reporter = new ConsoleReporter(PhysicalConsole.Singleton, verbose.HasValue(), quiet.HasValue()); 127if (verbose.HasValue()) 133if (checkJsonOutput.HasValue()) 135if (exportPath.HasValue() || trust?.HasValue() == true || format.HasValue() || noPassword.HasValue() || check.HasValue() || clean.HasValue() || 136(!import.HasValue() && password.HasValue()) || 137(import.HasValue() && !password.HasValue())) 144if (clean.HasValue()) 146if (exportPath.HasValue() || trust?.HasValue() == true || format.HasValue() || noPassword.HasValue() || check.HasValue() || checkJsonOutput.HasValue() || 147(!import.HasValue() && password.HasValue()) || 148(import.HasValue() && !password.HasValue())) 155if (check.HasValue()) 157if (exportPath.HasValue() || password.HasValue() || noPassword.HasValue() || clean.HasValue() || format.HasValue() || import.HasValue() || checkJsonOutput.HasValue()) 164if (!clean.HasValue() && !check.HasValue()) 166if (password.HasValue() && noPassword.HasValue()) 172if (noPassword.HasValue() && !(format.HasValue() && string.Equals(format.Value(), "PEM", StringComparison.OrdinalIgnoreCase))) 178if (import.HasValue()) 185if (check.HasValue()) 190if (clean.HasValue()) 193if (cleanResult != Success || !import.HasValue()) 201if (checkJsonOutput.HasValue()) 327if (trust != null && trust.HasValue()) 333if (verbose == null || !verbose.HasValue()) 379var certificates = manager.ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, exportPath.HasValue()); 395var isTrustOptionSet = trust?.HasValue() == true; 423if (exportFormat.HasValue() && !Enum.TryParse(exportFormat.Value(), ignoreCase: true, out format)) 434password.HasValue() || (noPassword.HasValue() && format == CertificateKeyExportFormat.Pem), 436exportFormat.HasValue() ? format : CertificateKeyExportFormat.Pfx);
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (1)
100return HasValue() ? Values[0] : null;