Skip to content

Commit

Permalink
Add --host sample to help
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed Sep 7, 2016
1 parent 6599b57 commit 3df5b62
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion lib/rubygems/commands/owner_command.rb
Expand Up @@ -40,7 +40,9 @@ def initialize
options[:remove] << value
end

add_option '-h', '--host HOST', 'Use another gemcutter-compatible host' do |value, options|
add_option '-h', '--host HOST',
'Use another gemcutter-compatible host',
' (e.g. https://rubygems.org)' do |value, options|
options[:host] = value
end
end
Expand Down
3 changes: 2 additions & 1 deletion lib/rubygems/commands/push_command.rb
Expand Up @@ -33,7 +33,8 @@ def initialize
add_key_option

add_option('--host HOST',
'Push to another gemcutter-compatible host') do |value, options|
'Push to another gemcutter-compatible host',
' (e.g. https://rubygems.org)') do |value, options|
options[:host] = value
end

Expand Down
3 changes: 2 additions & 1 deletion lib/rubygems/commands/yank_command.rb
Expand Up @@ -42,7 +42,8 @@ def initialize
add_platform_option("remove")

add_option('--host HOST',
'Yank from another gemcutter-compatible host') do |value, options|
'Yank from another gemcutter-compatible host',
' (e.g. https://rubygems.org)') do |value, options|
options[:host] = value
end

Expand Down

0 comments on commit 3df5b62

Please sign in to comment.