39 references to HasValue
dotnet-dev-certs (39)
Program.cs (38)
117
var reporter = new ConsoleReporter(PhysicalConsole.Singleton, verbose.
HasValue
(), quiet.
HasValue
());
119
if (verbose.
HasValue
())
125
if (clean.
HasValue
())
127
if (exportPath.
HasValue
() || trust?.
HasValue
() == true || format.
HasValue
() || noPassword.
HasValue
() || check.
HasValue
() ||
128
(!import.
HasValue
() && password.
HasValue
()) ||
129
(import.
HasValue
() && !password.
HasValue
()))
136
if (check.
HasValue
())
138
if (exportPath.
HasValue
() || password.
HasValue
() || noPassword.
HasValue
() || clean.
HasValue
() || format.
HasValue
() || import.
HasValue
())
145
if (!clean.
HasValue
() && !check.
HasValue
())
147
if (password.
HasValue
() && noPassword.
HasValue
())
153
if (noPassword.
HasValue
() && !(format.
HasValue
() && string.Equals(format.Value(), "PEM", StringComparison.OrdinalIgnoreCase)))
159
if (import.
HasValue
())
166
if (check.
HasValue
())
171
if (clean.
HasValue
())
174
if (cleanResult != Success || !import.
HasValue
())
303
if (trust != null && trust.
HasValue
())
309
if (verbose == null || !verbose.
HasValue
())
345
var certificates = manager.ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, exportPath.
HasValue
());
361
var isTrustOptionSet = trust?.
HasValue
() == true;
389
if (exportFormat.
HasValue
() && !Enum.TryParse(exportFormat.Value(), ignoreCase: true, out format))
400
password.
HasValue
() || (noPassword.
HasValue
() && format == CertificateKeyExportFormat.Pem),
402
exportFormat.
HasValue
() ? format : CertificateKeyExportFormat.Pfx);
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (1)
100
return
HasValue
() ? Values[0] : null;