diff options
Diffstat (limited to 'Command/Version.hs')
-rw-r--r-- | Command/Version.hs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Command/Version.hs b/Command/Version.hs index 70aea8f2c..38c799675 100644 --- a/Command/Version.hs +++ b/Command/Version.hs @@ -18,10 +18,12 @@ import qualified Remote import qualified Backend cmd :: Command -cmd = withOptions [rawOption] $ - noCommit $ noRepo startNoRepo $ dontCheck repoExists $ - command "version" SectionQuery "show version info" - paramNothing (withParams seek) +cmd = withOptions [rawOption] $ dontCheck repoExists $ noCommit $ + noRepo (parseparams startNoRepo) $ + command "version" SectionQuery "show version info" + paramNothing (parseparams seek) + where + parseparams = withParams rawOption :: Option rawOption = flagOption [] "raw" "output only program version" |