Remove breaking commander functions (#20825)
.passCommandToAction() is undefined, and was removed in Commander 7.0.0. See release note: a9c9f17c7e/CHANGELOG.md (deleted)
This commit is contained in:
@@ -18,9 +18,6 @@ const allowedActions = ['create', 'remove']
|
||||
|
||||
program
|
||||
.description('Create or remove a release candidate banner for the provided docs version.')
|
||||
// The following two settings let us use `version` as a flag without clashing with reserved opts
|
||||
.storeOptionsAsProperties(false)
|
||||
.passCommandToAction(false)
|
||||
.option(`-a, --action <${allowedActions.join(' or ')}>`, 'Create or remove the banner.')
|
||||
.option(
|
||||
'-v, --version <version>',
|
||||
|
||||
Reference in New Issue
Block a user