From 9afefa397c2f122fb9dd023ff20698c4f2b3888d Mon Sep 17 00:00:00 2001 From: Daniel Gröber Date: Wed, 5 Aug 2015 07:18:54 +0200 Subject: Fix help command, add version command --- CabalHelper/Wrapper.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'CabalHelper/Wrapper.hs') diff --git a/CabalHelper/Wrapper.hs b/CabalHelper/Wrapper.hs index c490b34..b827de6 100644 --- a/CabalHelper/Wrapper.hs +++ b/CabalHelper/Wrapper.hs @@ -118,7 +118,8 @@ main = handlePanic $ do opts <- guessProgramPaths opts' case args of [] -> usage - "--help":[] -> usage + "help":[] -> usage + "version":[] -> putStrLn $ showVersion version "print-appdatadir":[] -> putStrLn =<< appDataDir "print-build-platform":[] -> putStrLn $ display buildPlatform distdir:args' -> do -- cgit v1.2.3