52 references to HasValue
NuGet.CommandLine.XPlat (52)
Commands\DeleteCommand.cs (3)
71
bool nonInteractiveValue = nonInteractive.
HasValue
();
72
bool noServiceEndpoint = noServiceEndpointDescription.
HasValue
();
74
DefaultCredentialServiceUtility.SetupDefaultCredentialService(getLogger(), !interactive.
HasValue
());
Commands\LocalsCommand.cs (6)
56
else if (clear.
HasValue
() && list.
HasValue
())
60
else if (!clear.
HasValue
() && !list.
HasValue
())
70
clear.
HasValue
(),
71
list.
HasValue
());
Commands\PackageReferenceCommands\AddPackageReferenceCommand.cs (7)
88
if (!noRestore.
HasValue
())
93
var noVersion = !version.
HasValue
();
94
var packageVersion = version.
HasValue
() ? version.Value() : null;
95
ValidatePrerelease(prerelease.
HasValue
(), noVersion, addpkg.Name);
101
NoRestore = noRestore.
HasValue
(),
104
Interactive = interactive.
HasValue
(),
105
Prerelease = prerelease.
HasValue
(),
Commands\PackageReferenceCommands\ListPackage\ListPackageCommand.cs (9)
126
isOutdated: outdatedReport.
HasValue
(),
127
isDeprecated: deprecatedReport.
HasValue
(),
128
isVulnerable: vulnerableReport.
HasValue
());
138
includeTransitive.
HasValue
(),
139
prerelease.
HasValue
(),
140
highestPatch.
HasValue
(),
141
highestMinor.
HasValue
(),
148
DefaultCredentialServiceUtility.SetupDefaultCredentialService(getLogger(), !interactive.
HasValue
());
250
if (packageSources.Count == 0 || config.
HasValue
())
Commands\PackageReferenceCommands\RemovePackageReferenceCommand.cs (1)
55
Interactive = interactive.
HasValue
(),
Commands\PushCommand.cs (7)
108
bool disableBufferingValue = disableBuffering.
HasValue
();
109
bool noSymbolsValue = noSymbols.
HasValue
();
110
bool noServiceEndpoint = noServiceEndpointDescription.
HasValue
();
111
bool skipDuplicateValue = skipDuplicate.
HasValue
();
112
bool allowInsecureConnectionsValue = allowInsecureConnections.
HasValue
();
115
if (timeout.
HasValue
() && !int.TryParse(timeout.Value(), out timeoutSeconds))
126
DefaultCredentialServiceUtility.SetupDefaultCredentialService(getLogger(), !interactive.
HasValue
());
Commands\Signing\SignCommand.cs (6)
130
Overwrite = overwrite.
HasValue
(),
131
AllowUntrustedRoot = allowUntrustedRoot.
HasValue
(),
162
if (!timeStamper.
HasValue
())
170
if (output.
HasValue
())
185
if (location.
HasValue
())
204
if (store.
HasValue
())
Commands\Signing\TrustedSignersCommand.cs (3)
112
return await ExecuteCommand(TrustCommand.Author, algorithm: null, allowUntrustedRootOption.
HasValue
(), owners: null, verbosity, configFile, getLogger, setLogLevel, name: name.Value, sourceUrl: null, packagePath: package.Value);
146
return await ExecuteCommand(TrustCommand.Repository, algorithm: null, allowUntrustedRootOption.
HasValue
(), owners: owners, verbosity, configFile, getLogger, setLogLevel, name: name.Value, sourceUrl: null, packagePath: package.Value);
180
return await ExecuteCommand(TrustCommand.Certificate, algorithm, allowUntrustedRootOption.
HasValue
(), owners: null, verbosity, configFile, getLogger, setLogLevel, name: name.Value, sourceUrl: null, packagePath: null, fingerprint: fingerprint.Value);
Commands\Signing\VerifyCommand.cs (1)
61
args.Verifications = all.
HasValue
() ?
Commands\Verbs.cs (8)
66
StorePasswordInClearText = storePasswordInClearText.
HasValue
(),
70
AllowInsecureConnections = allowInsecureConnections.
HasValue
(),
128
StorePasswordInClearText = storepasswordincleartext.
HasValue
(),
133
Force = force.
HasValue
(),
410
StorePasswordInClearText = storePasswordInClearText.
HasValue
(),
414
AllowInsecureConnections = allowInsecureConnections.
HasValue
(),
472
StorePasswordInClearText = storepasswordincleartext.
HasValue
(),
477
Force = force.
HasValue
(),
src\nuget-client\artifacts\.packages\microsoft.extensions.commandlineutils.sources\3.0.0-preview6.19253.5\contentFiles\cs\netstandard1.0\shared\CommandLine\CommandOption.cs (1)
100
return
HasValue
() ? Values[0] : null;