Skip to content

Commit

Permalink
fix(cli): fixing unknown commands message (#747)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbanksdesign authored Dec 16, 2021
1 parent c6f482e commit 8a5f047
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/style-dictionary
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function getConfigPath(options) {
process.exit(1);
}
}

return configPath;
}

Expand Down Expand Up @@ -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);
});

Expand Down

0 comments on commit 8a5f047

Please sign in to comment.