cli: --version shows "dev build" when VERSION is undefined

Probably only noticeable in GHCI.
This commit is contained in:
Simon Michael 2014-10-18 12:36:27 -07:00
parent e8a58d9388
commit 6d67bcb026

View File

@ -24,7 +24,7 @@ progname = "hledger"
#ifdef VERSION
version = VERSION
#else
version = ""
version = "dev build"
#endif
prognameandversion = progname ++ " " ++ version
prognameanddetailedversion = printf "%s %s, using %s" progname version numberRepresentation