summaryrefslogtreecommitdiff
path: root/Command.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-02-06 17:08:14 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-02-06 17:16:41 -0400
commit0cb5a870007c8299f8788962bd7dfc0848794dc0 (patch)
tree43d9d70f436a42f055617df6abdf85972045476b /Command.hs
parent7d9431ef1b0cff4eece3cd8fc03e429e391d724a (diff)
The file matching options are now only accepted by commands that can actually use them.
Diffstat (limited to 'Command.hs')
-rw-r--r--Command.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Command.hs b/Command.hs
index 56e895cae..fd12991a4 100644
--- a/Command.hs
+++ b/Command.hs
@@ -55,7 +55,7 @@ noRepo a c = c { cmdnorepo = Just a }
{- Adds options to a command. -}
withOptions :: [Option] -> Command -> Command
-withOptions o c = c { cmdoptions = o }
+withOptions o c = c { cmdoptions = cmdoptions c ++ o }
{- For start and perform stages to indicate what step to run next. -}
next :: a -> Annex (Maybe a)