提交 65944f53 编写于 作者: A Andrew Wong

Change checks for present command line arguments

上级 158ffdf7
......@@ -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.
先完成此消息的编辑!
想要评论请 注册