method
options
options()
public
Hide source
# File railties/lib/commands/plugin.rb, line 614 def options OptionParser.new do |o| o.set_summary_indent(' ') o.banner = "Usage: #{@base_command.script_name} discover URI [URI [URI]...]" o.define_head "Discover repositories referenced on a page." o.separator "" o.separator "Options:" o.separator "" o.on( "-l", "--list", "List but don't prompt or add discovered repositories.") { |@list| @prompt = !@list } o.on( "-n", "--no-prompt", "Add all new repositories without prompting.") { |v| @prompt = !v } end end