Skip to content

Commit dec35b6

Browse files
authored
renamed variables
1 parent ce8138e commit dec35b6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bin/cli.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ program
3535
.option('--include-npm', 'include shallow NPM modules', false)
3636
.option('--no-color', 'disable color in output and image', false)
3737
.option('--no-spinner', 'disable progress spinner', false)
38-
.option('--no-index', 'disable index in output', false)
38+
.option('--no-count', 'disable circular dependencies counting', false)
3939
.option('--stdin', 'read predefined tree from STDIN', false)
4040
.option('--warning', 'show warnings about skipped files', false)
4141
.option('--debug', 'turn on debug output', false)
@@ -260,7 +260,7 @@ function createOutputFromOptions(program, res) {
260260

261261
output.circular(spinner, res, circular, {
262262
json: program.json,
263-
index: program.index
263+
printCount: program.count
264264
});
265265

266266
if (circular.length) {

lib/output.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ module.exports.circular = function (spinner, res, circular, opts) {
8080
} else {
8181
spinner.fail(chalk.red.bold(`Found ${pluralize('circular dependency', cyclicCount, true)}!\n`));
8282
circular.forEach((path, idx) => {
83-
if (opts.index) {
83+
if (opts.printCount) {
8484
process.stdout.write(chalk.dim(idx + 1 + ') '));
8585
}
8686
path.forEach((module, idx) => {

0 commit comments

Comments
 (0)