(options: T)
| 92 | } |
| 93 | |
| 94 | const filterDuplicateOptions = <T extends object>(options: T) => { |
| 95 | for (const [key, value] of Object.entries(options)) { |
| 96 | if (Array.isArray(value)) { |
| 97 | options[key as keyof T] = value[value.length - 1] |
| 98 | } |
| 99 | } |
| 100 | } |
| 101 | /** |
| 102 | * removing global flags before passing as command specific sub-configs |
| 103 | */ |