diff --git a/lib/cli/options.js b/lib/cli/options.js index 049c35b0..0dda5b84 100644 --- a/lib/cli/options.js +++ b/lib/cli/options.js @@ -134,6 +134,18 @@ module.exports = yargs return true }) + // Assert that if the `yes` flag is provided, the `drive` flag is also provided. + .check((argv) => { + if (argv.yes && !argv.drive) { + throw errors.createUserError({ + title: 'Missing drive', + description: 'You need to explicitly pass a drive when disabling interactively' + }) + } + + return true + }) + .options({ help: { describe: 'show help',