Skip to content

Commit 3ac6f2e

Browse files
committed
Fix new --conditions argument not being optional
1 parent e6a4c06 commit 3ac6f2e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: src/Paket/Program.fs

+3-2
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ let pack (results : ParseResults<_>) =
577577
|> legacyBool results (ReplaceArgument("--symbols", "symbols"))
578578
let includeReferencedProjects =
579579
(results.Contains PackArgs.Include_Referenced_Projects,
580-
results.Contains PackArgs.Include_Referenced_Projects_Legacy)
580+
results.Contains PackArgs.Include_Referenced_Projects_Legacy)
581581
|> legacyBool results (ReplaceArgument("--include-referenced-projects", "Include_Referenced_Projects"))
582582
let projectUrl =
583583
(results.TryGetResult PackArgs.Project_Url,
@@ -681,7 +681,8 @@ let fixNuspecs silent (results : ParseResults<_>) =
681681
|> List.collect (fun s -> s.Split([|';'|], StringSplitOptions.RemoveEmptyEntries) |> Array.toList)
682682
|> List.map (fun s -> s.Trim())
683683
let conditions =
684-
results.GetResult FixNuspecsArgs.Conditions
684+
results.TryGetResult FixNuspecsArgs.Conditions
685+
|> Option.defaultValue []
685686
|> List.collect (fun s -> s.Split([|';'|], StringSplitOptions.RemoveEmptyEntries) |> Array.toList)
686687
|> List.map (fun s -> s.Trim())
687688

0 commit comments

Comments
 (0)