Update scripts/utils/options.ts

This commit is contained in:
Michael Shilman 2022-08-15 16:59:55 +08:00 committed by GitHub
parent 6fb436bf61
commit c6f2d4e17e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -237,7 +237,7 @@ export async function promptOptions<TOptions extends OptionSpecifier>(
const selection = await prompts(questions, {
onCancel: () => {
console.log('Command cancelled by the user. Exiting...');
process.exit(0);
process.exit(1);
},
});
// Again the structure of the questions guarantees we get responses of the type we need