From ab76570e63256a0411c2632c1acba24073ac6179 Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Mon, 19 Aug 2024 15:54:19 +0100 Subject: [PATCH] chore: clarify default value usage --- doc/api/util.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/api/util.md b/doc/api/util.md index bc7c7da964776d..491c300a8b2084 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -1425,7 +1425,8 @@ changes: `false`, values for the option are last-wins. **Default:** `false`. * `short` {string} A single character alias for the option. * `default` {string | boolean | string\[] | boolean\[]} The default option - value when it is not set by args. It must be of the same type as the + value when it is not set by args. It must be of the same type as the. + If the argument is passed *without value*, the function **won't use the `default` value**. `type` property. When `multiple` is `true`, it must be an array. * `strict` {boolean} Should an error be thrown when unknown arguments are encountered, or when arguments are passed that do not match the