Invoke the command with the given list of normal arguments and additional build arguments.
# File lib/rubygems/command.rb, line 298
def invoke_with_build_args(args, build_args)
handle_options args
options[:build_args] = build_args
if options[:silent]
old_ui = self.ui
self.ui = ui = Gem::SilentUI.new
end
if options[:help] then
show_help
elsif @when_invoked then
@when_invoked.call options
else
execute
end
ensure
if ui
self.ui = old_ui
ui.close
end
end