We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3882545 commit 3fc7beeCopy full SHA for 3fc7bee
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@author.io/arg",
3
- "version": "1.3.16",
+ "version": "1.3.17",
4
"description": "An argument parser for CLI applications.",
5
"main": "src/index.js",
6
"exports": {
src/index.js
@@ -233,7 +233,10 @@ class Parser {
233
234
if (typeof flag.value !== flag.type) {
235
if (flag.type === 'boolean') {
236
- this.addFlag(flag.value)
+ const unknownFlag = new Flag(this.#cleanFlag(flag.value))
237
+ unknownFlag.strictTypes = false
238
+ this.#unknownFlags.set(this.#cleanFlag(flag.value), unknownFlag)
239
+
240
flag.value = true
241
}
242
0 commit comments