From 5ce15596ad72f2a0b838eccbc06cbd0e9cec94d0 Mon Sep 17 00:00:00 2001 From: Paul Blasucci Date: Sun, 17 Jan 2021 00:56:03 +0100 Subject: [PATCH] Prevent CLI parameters from being discarded --- src/FSharp.Formatting.CommandTool/ProjectCracker.fs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FSharp.Formatting.CommandTool/ProjectCracker.fs b/src/FSharp.Formatting.CommandTool/ProjectCracker.fs index c6a47d176..c27ce4114 100644 --- a/src/FSharp.Formatting.CommandTool/ProjectCracker.fs +++ b/src/FSharp.Formatting.CommandTool/ProjectCracker.fs @@ -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) @@ -422,7 +422,7 @@ module Crack = param (Some "") 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