1
0
mirror of synced 2025-12-25 02:17:36 -05:00

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:
Lucas Costi
2021-08-13 06:24:56 +10:00
committed by GitHub
parent 7955c52b99
commit ee29fedb4e

View File

@@ -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>',