summaryrefslogtreecommitdiff
path: root/Command/List.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/List.hs
parent7d9431ef1b0cff4eece3cd8fc03e429e391d724a (diff)
The file matching options are now only accepted by commands that can actually use them.
Diffstat (limited to 'Command/List.hs')
-rw-r--r--Command/List.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/Command/List.hs b/Command/List.hs
index bc4e3edec..b9b3a376c 100644
--- a/Command/List.hs
+++ b/Command/List.hs
@@ -24,8 +24,9 @@ import qualified Annex
import Git.Types (RemoteName)
cmd :: [Command]
-cmd = [noCommit $ withOptions [allrepos] $ command "list" paramPaths seek
- SectionQuery "show which remotes contain files"]
+cmd = [noCommit $ withOptions (allrepos : annexedMatchingOptions) $
+ command "list" paramPaths seek
+ SectionQuery "show which remotes contain files"]
allrepos :: Option
allrepos = flagOption [] "allrepos" "show all repositories, not only remotes"