Skip to content

Commit

Permalink
Rename —-show-skipped to —-warning
Browse files Browse the repository at this point in the history
  • Loading branch information
pahen committed Oct 6, 2016
1 parent e7bc05d commit a2d7c99
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# CHANGELOG

## v1.4.1 (Oct 6, 2016)
* Renamed `--show-skipped` to `--warning`.

## v1.4.1 (Oct 6, 2016)
* Don't show warnings about skipped files by default (enable with --show-skipped).

Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,10 @@ $ npm test

# FAQ

## Missing dependencies?

It could happen that the files you're not seeing have been skipped due to errors or that they can't be resolved. Run madge with the `--warning` option to see skipped files. If you need even more info run with the `--debug` option.

## What's the "Error: write EPIPE" when exporting graph to image?

Ensure you have Graphviz installed. And if you're running Windows graphviz is not setting PATH variable during install. You should add folder of gvpr.exe (typically %Graphviz_folder%/bin) to PATH variable.
Expand Down
4 changes: 2 additions & 2 deletions bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ program
.option('--dot', 'show graph using the DOT language')
.option('--extensions <list>', 'comma separated string of valid file extensions')
.option('--show-extension', 'include file extension in module name', false)
.option('--show-skipped', 'show warning about skipped files', false)
.option('--require-config <file>', 'path to RequireJS config')
.option('--webpack-config <file>', 'path to webpack config')
.option('--no-color', 'disable color in output and image', false)
.option('--stdin', 'read predefined tree from STDIN', false)
.option('--warning', 'show warnings about skipped files', false)
.option('--debug', 'turn on debug output', false)
.parse(process.argv);

Expand Down Expand Up @@ -154,7 +154,7 @@ new Promise((resolve, reject) => {
return res;
})
.then((res) => {
if (program.showSkipped && !program.json) {
if (program.warning && !program.json) {
output.warnings(res);
}
})
Expand Down

0 comments on commit a2d7c99

Please sign in to comment.