diff options
author | Joey Hess <joeyh@joeyh.name> | 2015-07-09 02:01:27 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2015-07-09 02:01:27 -0400 |
commit | 2fe6252a14ffa7f8dc385c95da901fc64bdc1b6f (patch) | |
tree | 41d5935f6fb58d22e2572ac88bd4b6d590983759 /CmdLine | |
parent | 70ce779d1fb8e4ab1a0bb3c09e742036ee05eed3 (diff) |
let bash completion complete files
Diffstat (limited to 'CmdLine')
-rw-r--r-- | CmdLine/GitAnnex/Options.hs | 6 |
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" + ) |