class CommandLine::ParametersOutOfRange

Missing a required file

Public Class Methods

new(expected, actual) click to toggle source
Calls superclass method
    # File lib/cli/command_line_arguments.rb
268 def initialize(expected, actual)
269   if expected.is_a?(Range)
270     if expected.end == CommandLine::Arguments::Definition::ENDLESS_PARAMETERS
271       super("The command expected at least #{expected.begin} parameters, but found #{actual}!")
272     else
273       super("The command expected between #{expected.begin} and #{expected.end} parameters, but found #{actual}!")
274     end
275   else
276     super("The command expected #{expected} parameters, but found #{actual}!")
277   end
278 end