vendor/bundle/ruby/2.6.0/gems/gli-2.19.2/lib/gli/command_support.rb
# The parent of this command, either the GLI app, or another command
The parent of this command, either the GLI app, or another command
The parent of this command either the GLI app or another command
def generate_error_action(arguments)
      lambda { |global_options,options,arguments|
        if am_subcommand? && arguments.size > 0
          raise UnknownCommand,"Unknown command '#{arguments[0]}'"
        elsif have_subcommands?
          raise BadCommandLine,"Command '#{name}' requires a subcommand #{self.commands.keys.join(',')}"
        else
          raise "Command '#{name}' has no action block"
        end
      }
    end
def generate_error_action ( arguments ) lambda { | global_options , options , arguments | if am_subcommand? && arguments . size > 0 raise UnknownCommand , "Unknown command '#{arguments[0]}'" elsif have_subcommands? raise BadCommandLine , "Command '#{name}' requires a subcommand #{self.commands.keys.join(',')}" else raise "Command '#{name}' has no action block" end } end
The parent of this command, either the GLI app, or another command
The parent of this command either the GLI app or another command
arguments
<not_specific>