Class: Clin::MissingArgumentError

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/clin/errors.rb

Overview

Error when a command is missing an argument

Instance Method Summary collapse

Constructor Details

#initialize(argument = '') ⇒ MissingArgumentError

Create a new MissingArgumentError

Parameters:

  • argument (String) (defaults to: '')

    Name of the missing argument



45
46
47
# File 'lib/clin/errors.rb', line 45

def initialize(argument = '')
  super("Missing argument #{argument}")
end