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-4.0.0/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 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0