# File lib/rubygems/gem_commands.rb, line 66 def add_local_remote_options add_option('-l', '--local', 'Restrict operations to the LOCAL domain' ) do |value, options| options[:domain] = :local end add_option('-r', '--remote', 'Restrict operations to the REMOTE domain') do |value, options| options[:domain] = :remote end add_option('-b', '--both', 'Allow LOCAL and REMOTE operations') do |value, options| options[:domain] = :both end end