Skip to content

Commit

Permalink
docs(api): mark the .defaults alias as deprecated more clearly (#1643)
Browse files Browse the repository at this point in the history
`.demand` and `.reset` have this “[DEPRECATED]” tag in their titles, so `.defaults` should too for consistency.
  • Loading branch information
roryokane committed May 4, 2020
1 parent 522b019 commit f0e281a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/api.md
Expand Up @@ -427,11 +427,11 @@ flag occurrences rather than `true` or `false`. Default value is thus `0`.

<a name="default"></a>.default(key, value, [description])
---------------------------------------------------------
.defaults(key, value, [description])
.defaults(key, value, [description]) [DEPRECATED]
------------------------------------

**Note:** The `.defaults()` alias is deprecated. It will be
removed in the next major version.
**Note:** The `.defaults()` alias is deprecated. It will be removed in the next
major version. Use `.default()` instead.

Set `argv[key]` to `value` if no option was specified in `process.argv`.

Expand Down

0 comments on commit f0e281a

Please sign in to comment.