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.



28
29
30
# File 'lib/mgit/exceptions.rb', line 28

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