aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgwern0 <gwern0@gmail.com>2009-11-28 15:48:40 +0100
committergwern0 <gwern0@gmail.com>2009-11-28 15:48:40 +0100
commitd611131ff60def671f0de351a0f522f3e3111998 (patch)
tree22b150b5e9556d1e9f901e7cf508fed117a7b45a
parent447954ba87e4597f833bfbfe59696a655664ca65 (diff)
downloadxmonad-d611131ff60def671f0de351a0f522f3e3111998.tar.gz
xmonad-d611131ff60def671f0de351a0f522f3e3111998.tar.xz
xmonad-d611131ff60def671f0de351a0f522f3e3111998.zip
Main.hs +--verbose-version flag
Ignore-this: 61a081f33adb460ea459950a750dd93f This resolves http://code.google.com/p/xmonad/issues/detail?id20 by adding a --verbose-version option yielding output like "xmonad 0.9 compiled by ghc 6.10 for linux/i386" darcs-hash:20091128144840-f7719-1a4ee39193cf86e2b6fa79c299c6daf5bb90dc07.gz
-rw-r--r--Main.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Main.hs b/Main.hs
index cce6868..abcab51 100644
--- a/Main.hs
+++ b/Main.hs
@@ -44,6 +44,8 @@ main = do
["--recompile"] -> recompile True >>= flip unless exitFailure
["--restart"] -> sendRestart >> return ()
["--version"] -> putStrLn ("xmonad " ++ showVersion version)
+ ["--verbose-version"] -> putStrLn ("xmonad " ++ showVersion version ++ " compiled by " ++ compilerName
+ ++ " " ++ showVersion compilerVersion ++ " for " ++ os ++ "/" ++ arch)
#ifdef TESTING
("--run-tests":_) -> Properties.main
#endif