rest
string[] => string
This commit is contained in:
parent
a8bb3cc49b
commit
52ec39a24c
1 changed files with 2 additions and 1 deletions
|
@ -102,5 +102,6 @@ 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?.join(' ') : entry.defaultValue
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue