Skip to content

Commit

Permalink
exit if fsc-args are combined with properties
Browse files Browse the repository at this point in the history
  • Loading branch information
dawedawe committed Nov 13, 2023
1 parent 46b45ed commit 5dedd2e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/FSharp.Analyzers.Cli/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,10 @@ let main argv =
let ignoreFiles = ignoreFiles |> List.map Glob
let properties = getProperties results

if Option.isSome fscArgs && not properties.IsEmpty then
printError "fsc-args can't be combined with MSBuild properties."
exit 1

if verbose then
properties |> List.iter (fun (k, v) -> printInfo $"Property %s{k}=%s{v}")

Expand Down

0 comments on commit 5dedd2e

Please sign in to comment.