# File lib/slop/commands.rb, line 135 def parse!(items = ARGV) if opts = commands[items[0].to_s] @triggered_command = items.shift execute_arguments! items opts.parse! items execute_global_opts! items else if opts = commands['default'] opts.parse! items else if config[:strict] && items[0] raise InvalidCommandError, "Unknown command `#{items[0]}`" end end execute_global_opts! items end items end