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:
parent
0e76b32aa5
commit
1cb7b88505
|
@ -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',
|
||||||
|
|
Loading…
Reference in New Issue