未验证 提交 f2c1232c 编写于 作者: M Martin Aeschlimann 提交者: GitHub

Merge pull request #83311 from featherbear/argv_noargs

Change checks for present command line arguments
......@@ -181,7 +181,7 @@ export function parseArgs<T>(args: string[], options: OptionDescriptions<T>, err
delete parsedArgs[o.deprecates];
}
if (val) {
if (typeof val !== 'undefined') {
if (o.type === 'string[]') {
if (val && !Array.isArray(val)) {
val = [val];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册