Skip to content

Commit

Permalink
Updated wrong command error message
Browse files Browse the repository at this point in the history
  • Loading branch information
tlaanemaa committed May 5, 2019
1 parent e19e64f commit c9f1349
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/modules/options.js
Expand Up @@ -35,7 +35,7 @@ program
program
.command('*', { noHelp: true })
.action((command) => {
throw new Error(`Unknown operation: ${command}\nUse --help to see all options`);
throw new Error(`Unknown command: ${command}\nUse --help to see usage information`);
});

// Parse args
Expand Down
2 changes: 1 addition & 1 deletion test/modules/options.test.js
Expand Up @@ -24,7 +24,7 @@ describe('options', () => {
global.process.argv = ['node', 'dummy.js', 'dance', 'mango'];

expect(() => require('../../src/modules/options'))
.toThrow('Unknown operation: dance\nUse --help to see all options');
.toThrow('Unknown command: dance\nUse --help to see usage information');
});

it('should show help if operation is omitted', () => {
Expand Down

0 comments on commit c9f1349

Please sign in to comment.