From 440f3b1068a1d0a49dff1307124c4f7f0bcd6f5d Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 30 Nov 2013 15:18:40 -0400 Subject: make "git annex help options" work outside a git repo Option parsing for commands that run outside git repos is still screwy, as there is no Annex monad and so the flags cannot be passed in. But, any remaining parameters can be, which is enough for this fix. --- Command.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Command.hs') diff --git a/Command.hs b/Command.hs index 2c157304f..b6484749e 100644 --- a/Command.hs +++ b/Command.hs @@ -55,7 +55,7 @@ noMessages c = c { cmdnomessages = True } {- Adds a fallback action to a command, that will be run if it's used - outside a git repository. -} -noRepo :: IO () -> Command -> Command +noRepo :: (CmdParams -> IO ()) -> Command -> Command noRepo a c = c { cmdnorepo = Just a } {- Adds options to a command. -} -- cgit v1.2.3