From f939e73d7c9cfb9fbb1f02df632a9ee16b7ccda9 Mon Sep 17 00:00:00 2001 From: Terri Ann Swallow Date: Thu, 13 Jun 2024 12:28:49 -0400 Subject: [PATCH] Populate the dev-env help documentation with the supported PHP versions. --- src/lib/dev-environment/dev-environment-cli.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/dev-environment/dev-environment-cli.ts b/src/lib/dev-environment/dev-environment-cli.ts index 732f4d31c..f1aef124e 100644 --- a/src/lib/dev-environment/dev-environment-cli.ts +++ b/src/lib/dev-environment/dev-environment-cli.ts @@ -858,6 +858,8 @@ export function processVersionOption( value: unknown ): string { return value?.toString() ?? ''; } +const phpVersionsSupported: string = Object.keys(DEV_ENVIRONMENT_PHP_VERSIONS).join(', '); + export function addDevEnvConfigurationOptions( command: Args ): Args { // We leave the third parameter to undefined on some because the defaults are handled in preProcessInstanceData() return command @@ -905,7 +907,7 @@ export function addDevEnvConfigurationOptions( command: Args ): Args { ) .option( 'php', - 'Manage the version of PHP. Accepts a string value for minor versions (8.x). Defaults to the most recent version of PHP.', + `Manage the version of PHP. Accepts a string value for minor versions: ${phpVersionsSupported}.`, undefined, processVersionOption )