summaryrefslogtreecommitdiffstats
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
commit087d3e7a45761d4570daf151bf3dd13f7c879858 (patch)
tree22b150b5e9556d1e9f901e7cf508fed117a7b45a
parent4d401d0054ee495ca00c2b6c3bb0f4156acebcff (diff)
downloadmetatile-087d3e7a45761d4570daf151bf3dd13f7c879858.tar
metatile-087d3e7a45761d4570daf151bf3dd13f7c879858.zip
Main.hs +--verbose-version flag
Ignore-this: 61a081f33adb460ea459950a750dd93f This resolves http://code.google.com/p/xmonad/issues/detail?id=320 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
-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