fmt
This commit is contained in:
parent
dcbf635860
commit
bffead6680
1 changed files with 3 additions and 3 deletions
|
@ -48,7 +48,7 @@ function parseFlags(
|
|||
argsNullable[i] = null
|
||||
args[entry.name] = true
|
||||
break
|
||||
} else args[entry.name] = entry.defaultValue ?? false;
|
||||
} else args[entry.name] = entry.defaultValue ?? false
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -81,5 +81,5 @@ function parseRest(
|
|||
argsNullable: Array<string | null>
|
||||
): void {
|
||||
const restValues = argsNullable.filter((x) => typeof x === 'string')
|
||||
args[entry.name] = restValues !== null ? restValues : entry.defaultValue;
|
||||
args[entry.name] = restValues !== null ? restValues : entry.defaultValue
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue