summaryrefslogtreecommitdiff
path: root/lib/rubygems
diff options
context:
space:
mode:
authorMatthias Viehweger <viehweger@puzzle.ch>2022-04-26 20:48:12 +0200
committergit <svn-admin@ruby-lang.org>2022-04-29 17:19:18 +0900
commit3cf107fde2f3556720e9ebabefae42db93c7ef8d (patch)
treee242642a4ffed3f0d3f8e73d30a090cc39e70a22 /lib/rubygems
parentcf45d30fd7e76359687ee32b6bae55d752b46840 (diff)
[rubygems/rubygems] Clarify description of owner-flags
https://github.com/rubygems/rubygems/commit/28864b1057
Diffstat (limited to 'lib/rubygems')
-rw-r--r--lib/rubygems/commands/owner_command.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/rubygems/commands/owner_command.rb b/lib/rubygems/commands/owner_command.rb
index 0a5665228f..a96ecd684a 100644
--- a/lib/rubygems/commands/owner_command.rb
+++ b/lib/rubygems/commands/owner_command.rb
@@ -12,7 +12,8 @@ class Gem::Commands::OwnerCommand < Gem::Command
def description # :nodoc:
<<-EOF
The owner command lets you add and remove owners of a gem on a push
-server (the default is https://rubygems.org).
+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 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
@@ -35,11 +36,11 @@ permission to.
add_otp_option
defaults.merge! :add => [], :remove => []
- add_option '-a', '--add EMAIL', 'Add an owner' do |value, options|
+ add_option '-a', '--add NEW_OWNER', 'Add an owner by email or handle' do |value, options|
options[:add] << value
end
- add_option '-r', '--remove EMAIL', 'Remove an owner' do |value, options|
+ add_option '-r', '--remove OLD_OWNER', 'Remove an owner by email or handle' do |value, options|
options[:remove] << value
end