Skip to content

Commit

Permalink
[rubygems/rubygems] Generalize description to account for different p…
Browse files Browse the repository at this point in the history
  • Loading branch information
kronn authored and matzbot committed Apr 29, 2022
1 parent 3cf107f commit 5741ae3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/rubygems/commands/owner_command.rb
Expand Up @@ -15,6 +15,10 @@ def description # :nodoc:
server (the default is https://rubygems.org). Multiple owners can be
added or removed at the same time, if the flag is given multiple times.
The supported user identifiers are dependant on the push server.
For rubygems.org, both e-mail and handle are supported, even though the
user identifier field is called "email".
The owner of a gem has the permission to push new versions, yank existing
versions or edit the HTML page of the gem. Be careful of who you give push
permission to.
Expand All @@ -36,11 +40,11 @@ def initialize
add_otp_option
defaults.merge! :add => [], :remove => []

add_option '-a', '--add NEW_OWNER', 'Add an owner by email or handle' do |value, options|
add_option '-a', '--add NEW_OWNER', 'Add an owner by user identifier' do |value, options|
options[:add] << value
end

add_option '-r', '--remove OLD_OWNER', 'Remove an owner by email or handle' do |value, options|
add_option '-r', '--remove OLD_OWNER', 'Remove an owner by user identifier' do |value, options|
options[:remove] << value
end

Expand Down

0 comments on commit 5741ae3

Please sign in to comment.