Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Complete argument for rvm --patch option

The rvm --patch option takes an argument that is one or more file names
separated by commas.
  • Loading branch information...
commit 56d914b8c84b9acfbae12679a4a989df60d0a17f 1 parent b0e1719
@aschrab aschrab authored
Showing with 8 additions and 1 deletion.
  1. +8 −1 src/_rvm
View
9 src/_rvm
@@ -23,12 +23,13 @@ _arguments -C \
'--bin[path for binaries to be placed (~/.rvm/bin/)]:path:_files' \
'--source[src directory to use (~/.rvm/src/)]:path:_files' \
'--archives[directory for downladed files (~/.rvm/archives/)]:path:_files' \
+ '-n[Name for new ruby install]:name:' \
'-S[Specify a script file to attempt to load and run (rubydo)]:file:_files' \
'-e[Execute code from the command line]:code' \
'-G[root gem path to use]:path:_files' \
'--gems[Used to set the gems_flag, use with remove to remove gems]' \
'--archive[Used to set the archive_flag, use with remove to remove archive]' \
- '--patch[With MRI Rubies you may specify one or more full paths to patches]' \
+ '--patch[With MRI Rubies you may specify one or more full paths to patches]:paths:->patches' \
'(-C --configure)'{-C,--configure}'=[custom configure options]' \
'--nice[process niceness (for slow computers, default 0)]:number' \
'--ree-options[Options passed directly to ree ./installer on the command line]:options' \
@@ -48,6 +49,12 @@ _arguments -C \
case $state in
+ patches)
+ compset -P '*,'
+ compset -S ',*'
+ _files -q -S ,
+ ;;
+
cmds)
cmds=( ${(f)"$(_call_program commands rvm help 2> /dev/null | sed -e '/^== Action/,/^== Implementation/!d; / \(::\|-\) /!d; s/^[ *]*\([^ *]*\)[ *]*\(::\|-\) *\(.*\)/\1:\3/')"} )
Please sign in to comment.
Something went wrong with that request. Please try again.