From 3d10d5bc9bdea1dd88db0c8878ddc7b271cdf10b Mon Sep 17 00:00:00 2001 From: nanohertz Date: Tue, 18 Oct 2022 08:44:42 +0300 Subject: [PATCH] fix issue #9 --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 4378e1d..536fc5b 100644 --- a/index.js +++ b/index.js @@ -61,7 +61,9 @@ module.exports = function (args, opts) { [].concat(opts.string).filter(Boolean).forEach(function (key) { flags.strings[key] = true; if (aliases[key]) { - flags.strings[aliases[key]] = true; + [].concat(aliases[key]).forEach(function (k) { + flags.strings[k] = true; + }); } });