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 #ifdef VERSION
version = VERSION version = VERSION
#else #else
version = "" version = "dev build"
#endif #endif
prognameandversion = progname ++ " " ++ version prognameandversion = progname ++ " " ++ version
prognameanddetailedversion = printf "%s %s, using %s" progname version numberRepresentation prognameanddetailedversion = printf "%s %s, using %s" progname version numberRepresentation