From 8a5f047af4a97a51894d4dfe4c917bf91686db8e Mon Sep 17 00:00:00 2001 From: Danny Banks Date: Thu, 16 Dec 2021 14:19:07 -0800 Subject: [PATCH] fix(cli): fixing unknown commands message (#747) --- bin/style-dictionary | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/style-dictionary b/bin/style-dictionary index 571833eee..3e1f79ffa 100755 --- a/bin/style-dictionary +++ b/bin/style-dictionary @@ -29,7 +29,7 @@ function getConfigPath(options) { process.exit(1); } } - + return configPath; } @@ -72,7 +72,7 @@ program // error on unknown commands program.on('command:*', function () { - console.error('Invalid command: %s\nSee --help for a list of available commands.', args.join(' ')); + console.error('Invalid command: %s\nSee --help for a list of available commands.', process.argv.slice(2).join(' ')); process.exit(1); });