Exception: MGit::CommandUsageError

Inherits:
UsageError
  • Object
show all
Defined in:
lib/mgit/exceptions.rb

Direct Known Subclasses

TooFewArgumentsError, TooManyArgumentsError

Instance Method Summary collapse

Methods inherited from UsageError

#to_s

Constructor Details

#initialize(error, cmd) ⇒ CommandUsageError

Returns a new instance of CommandUsageError.



51
52
53
# File 'lib/mgit/exceptions.rb', line 51

def initialize(error, cmd)
  super(error, "Usage: mgit #{cmd.usage}")
end