End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::LocalRemoteOptions#add_local_remote_options
add_local_remote_options
lib/rubygems/local_remote_options.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/rubygems/local_remote_options.rb, line 40
def add_local_remote_options
add_option(:"Local/Remote", '-l', '--local',
'Restrict operations to the LOCAL domain') do |value, options|
options[:domain] = :local
end
add_option(:"Local/Remote", '-r', '--remote',
'Restrict operations to the REMOTE domain') do |value, options|
options[:domain] = :remote
end
add_option(:"Local/Remote", '-b', '--both',
'Allow LOCAL and REMOTE operations') do |value, options|
options[:domain] = :both
end
add_bulk_threshold_option
add_clear_sources_option
add_source_option
add_proxy_option
add_update_sources_option
end
Add local/remote options to the command line parser.
See also
#add_clear_sources_option
#add_proxy_option
#add_bulk_threshold_option
#add_source_option
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1