Skip to content

Commit

Permalink
* misc/rb_optparse.zsh: add compdef for generator.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
znz committed Dec 26, 2010
1 parent 0924e52 commit d298593
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Mon Dec 27 07:38:07 2010 Kazuhiro NISHIYAMA <[email protected]>

* misc/rb_optparse.zsh: add compdef for generator.

Mon Dec 27 07:32:07 2010 Kazuhiro NISHIYAMA <[email protected]>

* lib/optparse.rb (OptionParser#compsys): escape brackets too.
Expand Down
2 changes: 2 additions & 0 deletions misc/rb_optparse.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ generate-complete-function/ruby/optparse ()
fi
}

compdef _command generate-complete-function/ruby/optparse

for cmd in "$@"; do
generate-complete-function/ruby/optparse "$cmd"
done

0 comments on commit d298593

Please sign in to comment.