diff options
author | Rich Trott <rtrott@gmail.com> | 2020-09-15 03:28:27 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2020-09-17 12:01:07 +0300 |
commit | c205f672e9cf0c70ea26f87eb97342947a244e18 (patch) | |
tree | 876d9901087811e63f1da5b41b22a456e62f87b9 /doc/api/util.md | |
parent | 18462e0c1d5f3b3a3e86b7b40fb65975f1e27381 (diff) |
doc: use command-line/command line consistently
Docs switch between "command line" and "command-line" with no apparent
uniformity. Microsoft Style Guide prescribes "command line" as a noun
and "command-line" as a modifier, which makes a lot of sense to me.
Updating docs as appropriate.
PR-URL: https://github.com/nodejs/node/pull/35198
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'doc/api/util.md')
-rw-r--r-- | doc/api/util.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/api/util.md b/doc/api/util.md index 6b857a027f3..3286b8a37a0 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -217,20 +217,20 @@ fn1(); // Emits a deprecation warning with code DEP0001 fn2(); // Does not emit a deprecation warning because it has the same code ``` -If either the `--no-deprecation` or `--no-warnings` command line flags are +If either the `--no-deprecation` or `--no-warnings` command-line flags are used, or if the `process.noDeprecation` property is set to `true` *prior* to the first deprecation warning, the `util.deprecate()` method does nothing. -If the `--trace-deprecation` or `--trace-warnings` command line flags are set, +If the `--trace-deprecation` or `--trace-warnings` command-line flags are set, or the `process.traceDeprecation` property is set to `true`, a warning and a stack trace are printed to `stderr` the first time the deprecated function is called. -If the `--throw-deprecation` command line flag is set, or the +If the `--throw-deprecation` command-line flag is set, or the `process.throwDeprecation` property is set to `true`, then an exception will be thrown when the deprecated function is called. -The `--throw-deprecation` command line flag and `process.throwDeprecation` +The `--throw-deprecation` command-line flag and `process.throwDeprecation` property take precedence over `--trace-deprecation` and `process.traceDeprecation`. |