Open
Description
According to the README, opts.boolean
doesn't work with -f
.
This would work, but is there another way that doesn't imply patching?
diff --git a/index.js b/index.js
index 78cafa8..9fda7a1 100644
--- a/index.js
+++ b/index.js
@@ -228,6 +228,7 @@ module.exports = function (args, opts) {
args[i + 1]
&& !(/^(-|--)[^-]/).test(args[i + 1])
&& !isBooleanKey(key)
+ && !flags.allBools
) {
setArg(key, args[i + 1], arg);
i += 1;
Metadata
Metadata
Assignees
Labels
No labels