diff options
Diffstat (limited to 'lib/rubygems/commands/open_command.rb')
-rw-r--r-- | lib/rubygems/commands/open_command.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/rubygems/commands/open_command.rb b/lib/rubygems/commands/open_command.rb index 957d369b26..a89b7421e3 100644 --- a/lib/rubygems/commands/open_command.rb +++ b/lib/rubygems/commands/open_command.rb @@ -15,6 +15,10 @@ class Gem::Commands::OpenCommand < Gem::Command "Opens gem sources in EDITOR") do |editor, options| options[:editor] = editor || get_env_editor end + add_option('-v', '--version VERSION', String, + "Opens specific gem version") do |version| + options[:version] = version + end end def arguments # :nodoc: |