We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19f95da commit 3eda82aCopy full SHA for 3eda82a
lib/thor/base.rb
@@ -474,10 +474,10 @@ def handle_no_command_error(command, has_namespace = $thor_runner) #:nodoc:
474
alias handle_no_task_error handle_no_command_error
475
476
def handle_argument_error(command, error, args, arity) #:nodoc:
477
- msg = "ERROR: #{basename} #{command.name} was called with "
+ msg = "ERROR: \"#{basename} #{command.name}\" was called with "
478
msg << 'no arguments' if args.empty?
479
msg << 'arguments ' << args.inspect if !args.empty?
480
- msg << "\nUsage: #{self.banner(command).inspect}."
+ msg << "\nUsage: #{self.banner(command).inspect}"
481
raise InvocationError, msg
482
end
483
0 commit comments