summaryrefslogtreecommitdiffhomepage
path: root/src/Xmobar/App/Opts.hs
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2018-12-04 21:25:28 +0000
committerjao <jao@gnu.org>2018-12-04 21:25:28 +0000
commitbad2dbf52d16f00d630636f2137eac16f736b138 (patch)
tree011dbeb302b3a41f892aca80edede5c747d0cb68 /src/Xmobar/App/Opts.hs
parentd48e752fb87555efb05f1251e6510b7cfdfa71d1 (diff)
downloadxmobar-bad2dbf52d16f00d630636f2137eac16f736b138.tar.gz
xmobar-bad2dbf52d16f00d630636f2137eac16f736b138.tar.bz2
Fix: honour command line flags
Fixes #370, and then some
Diffstat (limited to 'src/Xmobar/App/Opts.hs')
-rw-r--r--src/Xmobar/App/Opts.hs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Xmobar/App/Opts.hs b/src/Xmobar/App/Opts.hs
index 34e2c9e..07428d2 100644
--- a/src/Xmobar/App/Opts.hs
+++ b/src/Xmobar/App/Opts.hs
@@ -161,5 +161,8 @@ doOpts conf (o:oo) =
putStrLn "Can't parse position option, ignoring"
doOpts' conf
-forceRecompile :: [Opts] -> Bool
-forceRecompile = elem Recompile
+recompileFlag :: [Opts] -> Bool
+recompileFlag = elem Recompile
+
+verboseFlag :: [Opts] -> Bool
+verboseFlag = elem Verbose