FIX(command) incorrect value for rest default value
This commit is contained in:
parent
53030ea941
commit
5df70e5904
2 changed files with 25 additions and 1 deletions
|
@ -103,5 +103,5 @@ function parseRest(
|
|||
): void {
|
||||
const restValues = argsNullable.filter((x) => typeof x === 'string')
|
||||
args[entry.name] =
|
||||
restValues !== null ? restValues?.join(' ') : entry.defaultValue
|
||||
restValues.length > 0 ? restValues?.join(' ') : entry.defaultValue
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue