Skip to content

Commit 39642b2

Browse files
authored
[Playground CLI] Kebab-case yargs options declarations (#2399)
## Motivation for the change, related issues Short and sweet consistency change in Playground CLI. All yargs options are now declared using kebab-case. ## Testing Instructions (or ideally a Blueprint) Confirm we're not breaking CI checks.
1 parent 9f54d57 commit 39642b2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/playground/cli/src/run-cli.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ export async function parseOptionsAndRunCLI() {
157157
type: 'boolean',
158158
default: false,
159159
})
160-
.option('experimentalTrace', {
160+
.option('experimental-trace', {
161161
describe:
162162
'Print detailed messages about system behavior to the console. Useful for troubleshooting.',
163163
type: 'boolean',
@@ -179,7 +179,7 @@ export async function parseOptionsAndRunCLI() {
179179
default: false,
180180
})
181181
// TODO: Should we make this a hidden flag?
182-
.option('experimentalMultiWorker', {
182+
.option('experimental-multi-worker', {
183183
describe:
184184
'Enable experimental multi-worker support which requires JSPI ' +
185185
'and a /wordpress directory backed by a real filesystem. ' +
@@ -208,8 +208,8 @@ export async function parseOptionsAndRunCLI() {
208208
}
209209
}
210210

211-
if (args.experimentalMultiWorker !== undefined) {
212-
if (args.experimentalMultiWorker <= 1) {
211+
if (args['experimental-multi-worker'] !== undefined) {
212+
if (args['experimental-multi-worker'] <= 1) {
213213
throw new Error(
214214
'The --experimentalMultiWorker flag must be a positive integer greater than 1.'
215215
);

0 commit comments

Comments
 (0)