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) {