Exception: CommandLine::FlagExpectsArgument

Inherits:
Error
  • Object
show all
Defined in:
lib/command_line/exceptions.rb

Overview

Missing a required flag argument

Instance Method Summary collapse

Constructor Details

#initialize(flag) ⇒ FlagExpectsArgument

Returns a new instance of FlagExpectsArgument.



17
18
19
# File 'lib/command_line/exceptions.rb', line 17

def initialize(flag)
  super("#{flag} expects an argument!")
end