show meaningful error message with an unknown command

Fixes #5772
This commit is contained in:
Joao Duarte 2016-08-17 10:47:50 +01:00 committed by João Duarte
parent 22c857556f
commit 59bc304f27

View file

@ -63,6 +63,12 @@ module Clamp
class << self
include ::Clamp::Option::StrictDeclaration
end
def handle_remaining_arguments
unless remaining_arguments.empty?
signal_usage_error "Unknown command '#{remaining_arguments.first}'"
end
end
end
end