mirror of
https://github.com/xmonad/xmonad.git
synced 2025-05-19 00:20:22 -07:00
Main.hs +--verbose-version flag
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"
This commit is contained in:
parent
2b854ee47c
commit
a16bb44934
2
Main.hs
2
Main.hs
@ -44,6 +44,8 @@ main = do
|
|||||||
["--recompile"] -> recompile True >>= flip unless exitFailure
|
["--recompile"] -> recompile True >>= flip unless exitFailure
|
||||||
["--restart"] -> sendRestart >> return ()
|
["--restart"] -> sendRestart >> return ()
|
||||||
["--version"] -> putStrLn ("xmonad " ++ showVersion version)
|
["--version"] -> putStrLn ("xmonad " ++ showVersion version)
|
||||||
|
["--verbose-version"] -> putStrLn ("xmonad " ++ showVersion version ++ " compiled by " ++ compilerName
|
||||||
|
++ " " ++ showVersion compilerVersion ++ " for " ++ os ++ "/" ++ arch)
|
||||||
#ifdef TESTING
|
#ifdef TESTING
|
||||||
("--run-tests":_) -> Properties.main
|
("--run-tests":_) -> Properties.main
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user