From 40ea791ca9a9390e9a1e40e960d13a33ec3616c6 Mon Sep 17 00:00:00 2001 From: Maurice Kevenaar Date: Sun, 26 May 2019 13:49:46 +0200 Subject: [PATCH] (GH-1804) Added pre parameter to outdated With the pre parameter added to the outdated command, you are able to list outdated packages that have a pre-release available. As all the code was already available, only the parameter was added to the outdated command. --- .../infrastructure.app/commands/ChocolateyOutdatedCommand.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/chocolatey/infrastructure.app/commands/ChocolateyOutdatedCommand.cs b/src/chocolatey/infrastructure.app/commands/ChocolateyOutdatedCommand.cs index 37e58b3e90..89e0b688a9 100644 --- a/src/chocolatey/infrastructure.app/commands/ChocolateyOutdatedCommand.cs +++ b/src/chocolatey/infrastructure.app/commands/ChocolateyOutdatedCommand.cs @@ -52,6 +52,9 @@ public virtual void configure_argument_parser(OptionSet optionSet, ChocolateyCon .Add("cp=|certpassword=", "Certificate Password - the client certificate's password to the source. Defaults to empty. Available in 0.9.10+.", option => configuration.SourceCommand.CertificatePassword = option.remove_surrounding_quotes()) + .Add("pre|prerelease", + "Prerelease - Include Prereleases? Defaults to false. Available in 0.10.14+.", + option => configuration.Prerelease = option != null) .Add("ignore-pinned", "Ignore Pinned - Ignore pinned packages. Defaults to false. Available in 0.10.6+.", option => configuration.OutdatedCommand.IgnorePinned = option != null)