From b8df0dfc0277363d5688840f524b725d5dc8f1e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Sun, 25 Feb 2018 17:15:07 +0200 Subject: [PATCH] Print actual command on bad command When a bad command is given, print the actual command. --- maxctrl/lib/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maxctrl/lib/core.js b/maxctrl/lib/core.js index a386c9642..85391111c 100644 --- a/maxctrl/lib/core.js +++ b/maxctrl/lib/core.js @@ -104,7 +104,7 @@ program .demandCommand(1, 'At least one command is required') .command('*', 'the default command', {}, function(argv) { maxctrl(argv, function() { - return error('Unknown command. See output of `help` for a list of commands.') + return error('Unknown command ' + JSON.stringify(argv._) + '. See output of `help` for a list of commands.') }) })