instance method
parse!
Ruby on Rails 2.3.18
Since v2.2.3 Last seen in v3.1.12Signature
parse!(args=ARGV)
No documentation comment.
Parameters
-
argsopt = ARGV
Source
# File railties/lib/commands/plugin.rb, line 511
def parse!(args=ARGV)
general, sub = split_args(args)
options.parse!(general)
command = general.shift
if command =~ /^(list|discover|install|source|unsource|sources|remove|update|info)$/
command = Commands.const_get(command.capitalize).new(self)
command.parse!(sub)
else
puts "Unknown command: #{command}"
puts options
exit 1
end
end
Defined in railties/lib/commands/plugin.rb line 511
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Commands::Plugin