summaryrefslogtreecommitdiffstats
path: root/completion.py
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2014-03-06 15:45:43 +0100
committerJan Pokorný <jpokorny@redhat.com>2014-03-06 19:12:03 +0100
commit28b51dbffe5bd8b99f04b5d81878ea56e23a8cfe (patch)
tree5c0097c2be19e61432670c41713b7948471ae069 /completion.py
parent45dc8737e56b80638a3492a5ed1a1b8eee789702 (diff)
downloadclufter-28b51dbffe5bd8b99f04b5d81878ea56e23a8cfe.tar.gz
clufter-28b51dbffe5bd8b99f04b5d81878ea56e23a8cfe.tar.xz
clufter-28b51dbffe5bd8b99f04b5d81878ea56e23a8cfe.zip
completion: fix aliases missing in commands to complete
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'completion.py')
-rw-r--r--completion.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/completion.py b/completion.py
index 04d2abe..5efdee6 100644
--- a/completion.py
+++ b/completion.py
@@ -132,7 +132,7 @@ case "$2" in
-*) COMPREPLY=( $(compgen -W "${{opts_common}} ${{opts_main}}" -- $2) );;
*) COMPREPLY=( $(compgen -W "${{commands}}" -- $2) );;
esac""" .format(
- self._name, ' '.join(a for a, _ in handles),
+ self._name, ' '.join(a for a, _ in (aliases + handles)),
opts_common, opts_main, opts_nonmain, alias_case
).splitlines()
epilogue = "complete -o default -F {0} {1}".format(handle, self._prog)