Class: Kotoshu::Cli::Errors::UsageError

Inherits:
CliError
  • Object
show all
Defined in:
lib/kotoshu/cli/errors.rb

Overview

Usage error: bad flags, missing argument, file not found (exit 2).

Instance Attribute Summary

Attributes inherited from CliError

#exit_status

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ UsageError

Returns a new instance of UsageError.



23
24
25
# File 'lib/kotoshu/cli/errors.rb', line 23

def initialize(message)
  super(message, exit_status: 2)
end