Skip to content

Commit c25386b

Browse files
committed
Fix for empty formatter list.
1 parent 3aac33f commit c25386b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cli/Config.fs

+1-1
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ module Config =
308308
| _ -> emptyListConfig
309309
let updatedListConfig = l.GetAllResults() |> List.fold applyListArg listConfig
310310
let formatters = if updatedListConfig.Formats.IsEmpty then [ ListFormat.Cli Formatter.CommandLine.defaultFormatString ]
311-
else listConfig.Formats |> List.rev
311+
else updatedListConfig.Formats |> List.rev
312312
let updatedListConfig = { updatedListConfig with Formats = formatters }
313313
{ config with Command = List updatedListConfig }
314314
| MainArgs.Write w ->

0 commit comments

Comments
 (0)