fix(dev-infra): change circular deps positional params to camelCase (#36165)

Changes the positional params for the circular deps tooling to
use camelCase as it requires being defined in camelCase while
in strict mode.  Additionally, remove the `version()` call as
the boolean arguement does not exist in current versions and
throws errors on execution.

PR Close #36165
This commit is contained in:
Joey Perrott 2020-03-23 07:29:48 -07:00 committed by Misko Hevery
parent 0e76b32aa5
commit 1cb7b88505
1 changed files with 2 additions and 3 deletions

View File

@ -29,10 +29,9 @@ const defaultGlob =
if (require.main === module) { if (require.main === module) {
const {_: command, goldenFile, glob, baseDir, warnings} = const {_: command, goldenFile, glob, baseDir, warnings} =
yargs.help() yargs.help()
.version(false)
.strict() .strict()
.command('check <golden-file>', 'Checks if the circular dependencies have changed.') .command('check <goldenFile>', 'Checks if the circular dependencies have changed.')
.command('approve <golden-file>', 'Approves the current circular dependencies.') .command('approve <goldenFile>', 'Approves the current circular dependencies.')
.demandCommand() .demandCommand()
.option( .option(
'approve', 'approve',