Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## [Unreleased]

### Changed

* Pring version at beginning of execution when detailed verbosity is set. [3148](https://github.com/fsprojects/fantomas/issues/3148)

### Fixed

* Idempotency problem with comments in applications on lambda expressions. [#3128](https://github.com/fsprojects/fantomas/issues/3128)
Expand Down
10 changes: 8 additions & 2 deletions src/Fantomas/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -462,9 +462,15 @@ Join our Discord community: https://discord.gg/Cpq9vf8BJH

let asyncRunner = Async.Parallel >> Async.RunSynchronously

if Option.isSome version then
let versionLog =
let version = CodeFormatter.GetVersion()
stdlog $"Fantomas v%s{version}"
$"Fantomas v%s{version}"

if Option.isNone version then
logGrEqDetailed versionLog

if Option.isSome version then
stdlog versionLog
elif isDaemon then
let daemon =
new FantomasDaemon(Console.OpenStandardOutput(), Console.OpenStandardInput())
Expand Down
Loading