You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
config.Features.RemovePackageInformationOnUninstall=set_feature_flag(ApplicationParameters.Features.RemovePackageInformationOnUninstall,configFileSettings,defaultEnabled:false,description:"Remove Stored Package Information On Uninstall - When a package is uninstalled, should the stored package information also be removed? Available in 0.10.9+.");
305
305
config.Features.LogWithoutColor=set_feature_flag(ApplicationParameters.Features.LogWithoutColor,configFileSettings,defaultEnabled:false,description:"Log without color - Do not show colorization in logging output. Available in 0.10.9+.");
306
306
config.Features.LogValidationResultsOnWarnings=set_feature_flag(ApplicationParameters.Features.LogValidationResultsOnWarnings,configFileSettings,defaultEnabled:true,description:"Log validation results on warnings - Should the validation results be logged if there are warnings? Available in 0.10.12+.");
307
+
config.Features.UsePackageRepositoryOptimizations=set_feature_flag(ApplicationParameters.Features.UsePackageRepositoryOptimizations,configFileSettings,defaultEnabled:true,description:"Use Package Repository Optimizations - Turn on optimizations for reducing bandwidth with repository queries during package install/upgrade/outdated operations. Should generally be left enabled, unless a repository needs to support older methods of query. When disabled, this makes queries similar to the way they were done in Chocolatey v0.10.11 and before. Available in 0.10.14+.");
307
308
config.Features.ScriptsCheckLastExitCode=set_feature_flag(ApplicationParameters.Features.ScriptsCheckLastExitCode,configFileSettings,defaultEnabled:false,description:"Scripts Check $LastExitCode (external commands) - Leave this off unless you absolutely need it while you fix your package scripts to use `throw 'error message'` or `Set-PowerShellExitCode #` instead of `exit #`. This behavior started in 0.9.10 and produced hard to find bugs. If the last external process exits successfully but with an exit code of not zero, this could cause hard to detect package failures. Available in 0.10.3+. Will be removed in 0.11.0.");
308
309
config.PromptForConfirmation=!set_feature_flag(ApplicationParameters.Features.AllowGlobalConfirmation,configFileSettings,defaultEnabled:false,description:"Prompt for confirmation in scripts or bypass.");
"Exit When Reboot Detected - Stop running install, upgrade, or uninstall when a reboot request is detected. Requires '{0}' feature to be turned on. Will exit with either {1} or {2}. Overrides the default feature '{3}' set to '{4}'. Available in 0.10.12+.".format_with
159
+
"Exit When Reboot Detected - Stop running install, upgrade, or uninstall when a reboot request is detected. Requires '{0}' feature to be turned on. Will exit with either {1} or {2}. Overrides the default feature '{3}' set to '{4}'. Available in 0.10.12+.".format_with
"Disable Package Repository Optimizations - Do not use optimizations for reducing bandwidth with repository queries during package install/upgrade/outdated operations. Should not generally be used, unless a repository needs to support older methods of query. When used, this makes queries similar to the way they were done in Chocolatey v0.10.11 and before. Overrides the default feature '{0}' set to '{1}'. Available in 0.10.14+.".format_with
Copy file name to clipboardExpand all lines: src/chocolatey/infrastructure.app/commands/ChocolateyOutdatedCommand.cs
+10
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,16 @@ public virtual void configure_argument_parser(OptionSet optionSet, ChocolateyCon
58
58
.Add("ignore-unfound",
59
59
"Ignore Unfound Packages - Ignore packages that are not found on the sources used (or the defaults). Overrides the default feature '{0}' set to '{1}'. Available in 0.10.9+.".format_with(ApplicationParameters.Features.IgnoreUnfoundPackagesOnUpgradeOutdated,configuration.Features.IgnoreUnfoundPackagesOnUpgradeOutdated.to_string()),
"Disable Package Repository Optimizations - Do not use optimizations for reducing bandwidth with repository queries during package install/upgrade/outdated operations. Should not generally be used, unless a repository needs to support older methods of query. When disabled, this makes queries similar to the way they were done in Chocolatey v0.10.11 and before. Overrides the default feature '{0}' set to '{1}'. Available in 0.10.14+.".format_with
"Use Remembered Options for Upgrade - use the arguments and options used during install for upgrade. Does not override arguments being passed at runtime. Overrides the default feature '{0}' set to '{1}'. Available in 0.10.4+.".format_with(ApplicationParameters.Features.UseRememberedArgumentsForUpgrades,configuration.Features.UseRememberedArgumentsForUpgrades.to_string()),
"Ignore Remembered Options for Upgrade - ignore the arguments and options used during install for upgrade. Overrides the default feature '{0}' set to '{1}'. Available in 0.10.4+.".format_with(ApplicationParameters.Features.UseRememberedArgumentsForUpgrades,configuration.Features.UseRememberedArgumentsForUpgrades.to_string()),
"Exit When Reboot Detected - Stop running install, upgrade, or uninstall when a reboot request is detected. Requires '{0}' feature to be turned on. Will exit with either {1} or {2}. Overrides the default feature '{3}' set to '{4}'. Available in 0.10.12+.".format_with
199
+
"Exit When Reboot Detected - Stop running install, upgrade, or uninstall when a reboot request is detected. Requires '{0}' feature to be turned on. Will exit with either {1} or {2}. Overrides the default feature '{3}' set to '{4}'. Available in 0.10.12+.".format_with
"Disable Package Repository Optimizations - Do not use optimizations for reducing bandwidth with repository queries during package install/upgrade/outdated operations. Should not generally be used, unless a repository needs to support older methods of query. When disabled, this makes queries similar to the way they were done in Chocolatey v0.10.11 and before. Overrides the default feature '{0}' set to '{1}'. Available in 0.10.14+.".format_with
0 commit comments