summaryrefslogtreecommitdiff
path: root/Command/Version.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Command/Version.hs')
-rw-r--r--Command/Version.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/Command/Version.hs b/Command/Version.hs
index 3ceef3a60..70aea8f2c 100644
--- a/Command/Version.hs
+++ b/Command/Version.hs
@@ -20,12 +20,13 @@ import qualified Backend
cmd :: Command
cmd = withOptions [rawOption] $
noCommit $ noRepo startNoRepo $ dontCheck repoExists $
- command "version" paramNothing seek SectionQuery "show version info"
+ command "version" SectionQuery "show version info"
+ paramNothing (withParams seek)
rawOption :: Option
rawOption = flagOption [] "raw" "output only program version"
-seek :: CommandSeek
+seek :: CmdParams -> CommandSeek
seek = withNothing $ ifM (getOptionFlag rawOption) (startRaw, start)
startRaw :: CommandStart