aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2011-12-11 01:29:15 -0600
committerJack Nagel2011-12-11 01:49:47 -0600
commit96da368fc5a3ff4edcbb7fab6d6dc789c565ed85 (patch)
tree545d514cff36802d4dbdda430f15fae6f7977b66 /Library/Formula
parent7cf07cb2b6f3eac5b14600c9e829498bfd42574c (diff)
downloadhomebrew-96da368fc5a3ff4edcbb7fab6d6dc789c565ed85.tar.bz2
completion: complete multiple formula arguments
We make the assumption that the first non-option word is the command being invoked. Originally I was trying to allow command completion for non-standard command lines like $ brew --verbose inst<TAB> but right now executing something like that doesn't actually work. Which is interesting, because the man page implies that it should. Either the man page is incorrect, or something was broken between then and now. Anyway, it would probably be safe to just assume that COMP_WORDS[1] is the command, and we do make that assumption in other places. But if we ever do allow things like "brew --option command", this will be useful. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
0 files changed, 0 insertions, 0 deletions