diff options
author | Joey Hess <joeyh@joeyh.name> | 2015-07-08 15:39:05 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2015-07-08 15:39:05 -0400 |
commit | b2252febf1355e62a00fb735831d3b2a1aed2566 (patch) | |
tree | 621fb71f80252d300436261bb1d67ee537d1f7e9 /CmdLine | |
parent | e7e61fb6cbe5455ded9bb550a64121223c099fc2 (diff) |
support cmdnorepo actions, also using getopt-applicative there
Diffstat (limited to 'CmdLine')
-rw-r--r-- | CmdLine/Usage.hs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/CmdLine/Usage.hs b/CmdLine/Usage.hs index 58408762b..1355c4316 100644 --- a/CmdLine/Usage.hs +++ b/CmdLine/Usage.hs @@ -11,7 +11,6 @@ import Common.Annex import Types.Command import System.Console.GetOpt -import qualified Options.Applicative as O usageMessage :: String -> String usageMessage s = "Usage: " ++ s @@ -56,13 +55,6 @@ commandUsage cmd = unlines , "[option ...]" ] -{- Simple CommandParser generator, for when the CommandSeek wants all - - non-option parameters. -} -withParams :: (CmdParams -> CommandSeek) -> String -> CommandParser -withParams mkseek paramdesc = mkseek <$> O.many cmdparams - where - cmdparams = O.argument O.str (O.metavar paramdesc) - {- Descriptions of params used in usage messages. -} paramPaths :: String paramPaths = paramRepeating paramPath -- most often used |