Skip to content

Commit

Permalink
code review adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
giltayar authored and juergba committed Feb 21, 2020
1 parent 6e65047 commit ef8422c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
8 changes: 3 additions & 5 deletions lib/cli/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
*/

const debug = require('debug')('mocha:cli:cli');
const symbols = require('log-symbols');
const yargs = require('yargs/yargs');
const path = require('path');
const ansi = require('ansi-colors');
const symbols = require('log-symbols');
const {loadOptions, YARGS_PARSER_CONFIG} = require('./options');
const commands = require('./commands');
const ansi = require('ansi-colors');
const {repository, homepage, version, gitter} = require('../../package.json');

/**
Expand Down Expand Up @@ -48,9 +48,7 @@ exports.main = (argv = process.argv.slice(2)) => {
.fail((msg, err, yargs) => {
debug(err);
yargs.showHelp();
console.error(
`\n${symbols.error} ${ansi.red('ERROR:')} ${err ? err.message : msg}`
);
console.error(`\n${symbols.error} ${ansi.red('ERROR:')} ${msg}`);
process.exit(1);
})
.help('help', 'Show usage information & exit')
Expand Down
2 changes: 1 addition & 1 deletion lib/cli/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ exports.builder = yargs =>
},
extension: {
default: defaults.extension,
defaultDescription: 'js,cjs,mjs',
defaultDescription: 'js',
description: 'File extension(s) to load',
group: GROUPS.FILES,
requiresArg: true,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"growl": "1.10.5",
"he": "1.2.0",
"js-yaml": "3.13.1",
"log-symbols": "^3.0.0",
"log-symbols": "3.0.0",
"minimatch": "3.0.4",
"mkdirp": "0.5.1",
"ms": "2.1.1",
Expand Down

0 comments on commit ef8422c

Please sign in to comment.