aboutsummaryrefslogtreecommitdiff
path: root/Command/Version.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-07-08 15:39:05 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-07-08 15:39:05 -0400
commitb2252febf1355e62a00fb735831d3b2a1aed2566 (patch)
tree621fb71f80252d300436261bb1d67ee537d1f7e9 /Command/Version.hs
parente7e61fb6cbe5455ded9bb550a64121223c099fc2 (diff)
support cmdnorepo actions, also using getopt-applicative there
Diffstat (limited to 'Command/Version.hs')
-rw-r--r--Command/Version.hs10
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"