From 04132f024a7504f1803731316e2173b2dd3f3fa4 Mon Sep 17 00:00:00 2001 From: Slawomir Koszewski Date: Sun, 8 Feb 2026 07:40:41 +0100 Subject: [PATCH] fix(create-pca): update usage text and remove redundant app-name option --- scripts/create-pca.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/create-pca.js b/scripts/create-pca.js index d5724da..b20bb65 100755 --- a/scripts/create-pca.js +++ b/scripts/create-pca.js @@ -33,9 +33,8 @@ function runAz(args, options = {}) { } async function main() { - const usageText = `Usage: ${path.basename(process.argv[1])} [options] [app-name] + const usageText = `Usage: ${path.basename(process.argv[1])} [options] Options: - -n, --app-name Application display name (optional if positional app-name is provided) -c, --config Write config template to file (optional) -h, --help Show this help message and exit`; let values; @@ -45,7 +44,6 @@ Options: args: process.argv.slice(2), options: { help: { type: "boolean", short: "h" }, - "app-name": { type: "string", short: "n" }, config: { type: "string", short: "c" }, }, strict: true, @@ -70,7 +68,7 @@ Options: process.exit(1); } - const appName = values["app-name"] || positionals[0] || ""; + const appName = positionals[0] || ""; const configPath = values.config || ""; if (!appName) {