Skip to content

Commit

Permalink
Prevent CLI parameters from being discarded (#634)
Browse files Browse the repository at this point in the history
  • Loading branch information
pblasucci authored Jan 21, 2021
1 parent 759d69b commit 453c0b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FSharp.Formatting.CommandTool/ProjectCracker.fs
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ module Crack =
let parametersForProjectInfo (info: CrackedProjectInfo) =
let projectUrl = info.PackageProjectUrl |> Option.map ensureTrailingSlash |> Option.defaultValue root
let repoUrl = info.RepositoryUrl |> Option.map ensureTrailingSlash
userParameters @ List.choose id [
List.choose id [
param None ParamKeys.``root`` (Some root)
param None ParamKeys.``fsdocs-authors`` (Some (info.Authors |> Option.defaultValue ""))
param None ParamKeys.``fsdocs-collection-name`` (Some collectionName)
Expand All @@ -422,7 +422,7 @@ module Crack =
param (Some "<RepositoryUrl>") ParamKeys.``fsdocs-repository-link`` repoUrl
param None ParamKeys.``fsdocs-repository-branch`` info.RepositoryBranch
param None ParamKeys.``fsdocs-repository-commit`` info.RepositoryCommit
]
] @ userParameters

let crackedProjects =
projectInfos
Expand Down

0 comments on commit 453c0b8

Please sign in to comment.