Skip to content

Commit

Permalink
Fix new --conditions argument not being optional
Browse files Browse the repository at this point in the history
  • Loading branch information
vgeronimos committed Mar 7, 2024
1 parent e6a4c06 commit 3ac6f2e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Paket/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ let pack (results : ParseResults<_>) =
|> legacyBool results (ReplaceArgument("--symbols", "symbols"))
let includeReferencedProjects =
(results.Contains PackArgs.Include_Referenced_Projects,
results.Contains PackArgs.Include_Referenced_Projects_Legacy)
results.Contains PackArgs.Include_Referenced_Projects_Legacy)
|> legacyBool results (ReplaceArgument("--include-referenced-projects", "Include_Referenced_Projects"))
let projectUrl =
(results.TryGetResult PackArgs.Project_Url,
Expand Down Expand Up @@ -681,7 +681,8 @@ let fixNuspecs silent (results : ParseResults<_>) =
|> List.collect (fun s -> s.Split([|';'|], StringSplitOptions.RemoveEmptyEntries) |> Array.toList)
|> List.map (fun s -> s.Trim())
let conditions =
results.GetResult FixNuspecsArgs.Conditions
results.TryGetResult FixNuspecsArgs.Conditions
|> Option.defaultValue []
|> List.collect (fun s -> s.Split([|';'|], StringSplitOptions.RemoveEmptyEntries) |> Array.toList)
|> List.map (fun s -> s.Trim())

Expand Down

0 comments on commit 3ac6f2e

Please sign in to comment.