@@ -44,7 +44,7 @@ type CLIArguments =
4444 | [<CustomCommandLine( " version" ) >] Version of string
4545 | [<Rest>] References_ Files of string
4646 | No_ Install
47- | Strict
47+ | Ignore _ Constraints
4848 | [<AltCommandLine( " --pre" ) >] Include_ Prereleases
4949 | No_ Auto_ Restore
5050with
6666 | Interactive -> " interactive process."
6767 | Hard -> " overwrites manual package references."
6868 | No_ Install -> " omits install --hard after convert-from-nuget."
69- | Strict -> " keeps all version requirements when searching for outdated packages."
69+ | Ignore _ Constraints -> " ignores the version requirements when searching for outdated packages."
7070 | Include_ Prereleases -> " includes prereleases when searching for outdated packages."
7171 | No_ Auto_ Restore -> " omits init-auto-restore after convert-from-nuget."
7272 | Nuget _ -> " allows to specify a nuget package."
105105 let hard = results.Contains <@ CLIArguments.Hard @>
106106 let noInstall = results.Contains <@ CLIArguments.No_ Install @>
107107 let noAutoRestore = results.Contains <@ CLIArguments.No_ Auto_ Restore @>
108- let strict = results.Contains <@ CLIArguments.Strict @>
109108 let includePrereleases = results.Contains <@ CLIArguments.Include_ Prereleases @>
110109
111110 match command with
130129 UpdateProcess.UpdatePackage( packageName, version, force, hard)
131130 | _ -> UpdateProcess.Update( true , force, hard)
132131
133- | Command.Outdated -> FindOutdated.ListOutdated( strict, includePrereleases)
132+ | Command.Outdated ->
133+ let strict = results.Contains <@ CLIArguments.Ignore_ Constraints @> |> not
134+ FindOutdated.ListOutdated( strict, includePrereleases)
134135 | Command.InitAutoRestore -> VSIntegration.InitAutoRestore()
135136 | Command.ConvertFromNuget -> NuGetConvert.ConvertFromNuget( force, noInstall |> not , noAutoRestore |> not )
136137 | Command.Simplify -> Simplifier.Simplify( interactive)
0 commit comments