Skip to content

Commit

Permalink
Problem: no documented way to disable logging
Browse files Browse the repository at this point in the history
Solution: document --loglevel=silent and add --silent shortcut
for consistency.

(I did not see any existing regression tests for options so it's
unclear to me where to add a regression test for this... sorry.)
  • Loading branch information
hintjens committed Feb 14, 2016
1 parent 3a1f728 commit 3a3b7d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ Command options
| `-j n`, `--jobs n` | For `build`: run parallel builds
| `--silly`, `--loglevel=silly` | Log all progress to console
| `--verbose`, `--loglevel=verbose` | Log most progress to console
| `--silent`, `--loglevel=silent` | Don't log anything
| `--debug` | Make Debug build (default=Release)

License
Expand Down
1 change: 1 addition & 0 deletions lib/node-gyp.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ proto.shorthands = {
, j: '--jobs'
, silly: '--loglevel=silly'
, verbose: '--loglevel=verbose'
, silent: '--loglevel=silent'
}

/**
Expand Down

0 comments on commit 3a3b7d5

Please sign in to comment.