diff options
author | Spencer Janssen <spencerjanssen@gmail.com> | 2009-12-08 05:07:29 +0100 |
---|---|---|
committer | Spencer Janssen <spencerjanssen@gmail.com> | 2009-12-08 05:07:29 +0100 |
commit | b94e1b3da24d2a7d7b7d60590efc20d01641d805 (patch) | |
tree | e913e395381e1c86a8db1d8e27da3286e6f2a980 | |
parent | 3d0273b956966145e8538771254c5347225cf3ec (diff) | |
download | metatile-b94e1b3da24d2a7d7b7d60590efc20d01641d805.tar metatile-b94e1b3da24d2a7d7b7d60590efc20d01641d805.zip |
A few tweaks to --verbose-version
Ignore-this: cf3d6a904d23891829c10f4966974673
darcs-hash:20091208040729-25a6b-67a1ed2a483e9beb425f833f9487f1abeb720a26
-rw-r--r-- | Main.hs | 12 | ||||
-rw-r--r-- | man/xmonad.1.markdown | 3 |
2 files changed, 12 insertions, 3 deletions
@@ -26,6 +26,8 @@ import System.Exit (exitFailure) import Paths_xmonad (version) import Data.Version (showVersion) +import Graphics.X11.Xinerama (compiledWithXinerama) + #ifdef TESTING import qualified Properties #endif @@ -43,13 +45,17 @@ main = do ["--help"] -> usage ["--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) + ["--version"] -> putStrLn $ unwords shortVersion + ["--verbose-version"] -> putStrLn . unwords $ shortVersion ++ longVersion #ifdef TESTING ("--run-tests":_) -> Properties.main #endif _ -> fail "unrecognized flags" + where + shortVersion = ["xmonad", showVersion version] + longVersion = [ "compiled by", compilerName, showVersion compilerVersion + , "for", arch ++ "-" ++ os + , "\nXinerama:", show compiledWithXinerama ] usage :: IO () usage = do diff --git a/man/xmonad.1.markdown b/man/xmonad.1.markdown index c7c2519..1099fdb 100644 --- a/man/xmonad.1.markdown +++ b/man/xmonad.1.markdown @@ -60,6 +60,9 @@ These flags are: --version : Display version of _xmonad_ +--verbose-version +: Display detailed version of _xmonad_ + ##Default keyboard bindings ___KEYBINDINGS___ |