From bc577c68a23e20491a9fa73f471d9f24b97976a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Jona=C5=A1?= Date: Mon, 6 Nov 2023 17:41:59 +0100 Subject: [PATCH] fix(devkit): command format example should use derived info instead of as-provided (#20065) --- packages/devkit/src/generators/project-name-and-root-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/devkit/src/generators/project-name-and-root-utils.ts b/packages/devkit/src/generators/project-name-and-root-utils.ts index 7700d23f625d5..caa2961453cb2 100644 --- a/packages/devkit/src/generators/project-name-and-root-utils.ts +++ b/packages/devkit/src/generators/project-name-and-root-utils.ts @@ -122,7 +122,7 @@ function getExample( callingGenerator: string, formats: ProjectNameAndRootFormats ) { - return `Example: nx g ${callingGenerator} ${formats['as-provided'].projectName} --directory ${formats['as-provided'].projectRoot}`; + return `Example: nx g ${callingGenerator} ${formats['derived'].projectName} --directory ${formats['derived'].projectRoot}`; } async function determineFormat(