summaryrefslogtreecommitdiff
path: root/misc/rb_optparse.bash
diff options
context:
space:
mode:
Diffstat (limited to 'misc/rb_optparse.bash')
-rw-r--r--misc/rb_optparse.bash7
1 files changed, 4 insertions, 3 deletions
diff --git a/misc/rb_optparse.bash b/misc/rb_optparse.bash
index 5022442c94..f77d937c87 100644
--- a/misc/rb_optparse.bash
+++ b/misc/rb_optparse.bash
@@ -1,4 +1,5 @@
-#! /bin/bash
+# -*- bash -*-
+#
# Completion for bash:
#
# (1) install this file,
@@ -11,10 +12,10 @@
# rb_optparse command_using_optparse_2
_rb_optparse() {
- COMPREPLY=($("${COMP_WORDS[0]}" --help=complete="${COMP_WORDS[COMP_CWORD]}"))
+ COMPREPLY=($("${COMP_WORDS[0]}" "--*-completion-bash=${COMP_WORDS[COMP_CWORD]}"))
return 0
}
rb_optparse () {
- [ $# = 0 ] || complete -o default -F _rb_optparse "$@"
+ [ $# = 0 ] || complete -o default -F _rb_optparse "$@"
}