Sha256: 6b167de27326664cd203794d006a1ff28974983ea8e304a65e409e38edf23bb2

Contents?: true

Size: 459 Bytes

Versions: 14

Compression:

Stored size: 459 Bytes

Contents

# -*- bash -*-
#
# Completion for bash:
#
# (1) install this file,
#
# (2) load the script, and
#      . ~/.profile.d/rb_optparse.bash
#
# (3) define completions in your .bashrc,
#      rb_optparse command_using_optparse_1
#      rb_optparse command_using_optparse_2

_rb_optparse() {
  COMPREPLY=($("${COMP_WORDS[0]}" "--*-completion-bash=${COMP_WORDS[COMP_CWORD]}"))
  return 0
}

rb_optparse () {
  [ $# = 0 ] || complete -o default -F _rb_optparse "$@"
}

Version data entries

14 entries across 14 versions & 3 rubygems

Version Path
optparse-0.6.0 misc/rb_optparse.bash
optparse-0.5.0 misc/rb_optparse.bash
cli-option_parser.rb-0.6.0 misc/rb_optparse.bash
cli-option_parser.rb-0.5.3 misc/rb_optparse.bash
cli-option_parser.rb-0.5.2 misc/rb_optparse.bash
cmd-optparse.rb-0.5.2 misc/rb_optparse.bash
cmd-optparse.rb-0.5.0 misc/rb_optparse.bash
cmd-optparse.rb-0.1.1 misc/rb_optparse.bash
cmd-optparse.rb-0.1.0 misc/rb_optparse.bash
optparse-0.4.0 misc/rb_optparse.bash
optparse-0.3.1 misc/rb_optparse.bash
optparse-0.3.0 misc/rb_optparse.bash
optparse-0.2.0 misc/rb_optparse.bash
optparse-0.1.1 misc/rb_optparse.bash