summaryrefslogtreecommitdiff
path: root/CmdLine/GitAnnex
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-07-09 02:01:27 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-07-09 02:01:27 -0400
commit2fe6252a14ffa7f8dc385c95da901fc64bdc1b6f (patch)
tree41d5935f6fb58d22e2572ac88bd4b6d590983759 /CmdLine/GitAnnex
parent70ce779d1fb8e4ab1a0bb3c09e742036ee05eed3 (diff)
let bash completion complete files
Diffstat (limited to 'CmdLine/GitAnnex')
-rw-r--r--CmdLine/GitAnnex/Options.hs6
1 files changed, 5 insertions, 1 deletions
diff --git a/CmdLine/GitAnnex/Options.hs b/CmdLine/GitAnnex/Options.hs
index 160c01a3a..51c222d7d 100644
--- a/CmdLine/GitAnnex/Options.hs
+++ b/CmdLine/GitAnnex/Options.hs
@@ -200,4 +200,8 @@ parseAutoOption = switch
{- Parser that accepts all non-option params. -}
cmdParams :: CmdParamsDesc -> Parser CmdParams
-cmdParams paramdesc = many (argument str (metavar paramdesc))
+cmdParams paramdesc = many $ argument str
+ ( metavar paramdesc
+ -- Let bash completion complete files
+ <> action "file"
+ )