feat(cli): must select at least one filetype
This commit is contained in:
parent
0d8ab40ba9
commit
427a75f2dd
1 changed files with 3 additions and 0 deletions
|
@ -104,6 +104,9 @@ void (async () => {
|
|||
name: 'types',
|
||||
message: 'Filetype Selection',
|
||||
choices: typeChoices,
|
||||
validate (input: number[]) {
|
||||
return input.length >= 1
|
||||
},
|
||||
})
|
||||
const filetypes = types.map(i => INDV_DOWNLOADS[i])
|
||||
|
||||
|
|
Loading…
Reference in a new issue