Skip to content

Commit

Permalink
Add lock-dependencies parameter
Browse files Browse the repository at this point in the history
Add the parameter to the PackArgs-Type and pass it.
  • Loading branch information
inosik committed Jul 20, 2015
1 parent 17a1c92 commit c388d05
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Paket/Commands.fs
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ type PackArgs =
| [<CustomCommandLine("version")>] Version of string
| [<CustomCommandLine("templatefile")>] TemplateFile of string
| [<CustomCommandLine("releaseNotes")>] ReleaseNotes of string
| [<CustomCommandLine("lock-dependencies")>] LockDependencies
with
interface IArgParserTemplate with
member this.Usage =
Expand All @@ -260,6 +261,7 @@ with
| Version(_) -> "Specify version of the package."
| TemplateFile(_) -> "Allows to specify a single template file."
| ReleaseNotes(_) -> "Specify relase notes for the package."
| LockDependencies -> "Get the version requirements from paket.lock instead of paket.dependencies."

type PushArgs =
| [<CustomCommandLine("url")>][<Mandatory>] Url of string
Expand Down
3 changes: 2 additions & 1 deletion src/Paket/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ let pack (results : ArgParseResults<_>) =
?version = results.TryGetResult <@ PackArgs.Version @>,
?releaseNotes = results.TryGetResult <@ PackArgs.ReleaseNotes @>,
?templateFile = results.TryGetResult <@ PackArgs.TemplateFile @>,
workingDir = Environment.CurrentDirectory)
workingDir = Environment.CurrentDirectory,
lockDependencies = results.Contains <@ PackArgs.LockDependencies @>)

let findPackages (results : ArgParseResults<_>) =
let maxResults = defaultArg (results.TryGetResult <@ FindPackagesArgs.MaxResults @>) 10000
Expand Down

0 comments on commit c388d05

Please sign in to comment.