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