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