Skip to content

Commit 8b31b20

Browse files
mashabekpavelsvagr
authored andcommitted
✨ Add better description for project-name argument
1 parent 034ec8f commit 8b31b20

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ STARTER Which template to setup (required)
2424
2525
Options:
2626
--dir, -d DIR Destination directory (default: ./node-app)
27-
--name, -n NAME Project name used in config files (default: directory basename)
27+
--project-name, -n NAME Google Cloud project name (default: directory basename)
2828
--help, -h Show this help message
2929
3030
Starters available:

src/Bootstrap.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export default class Boostrap {
7777
if ((arg === '--dir' || arg === '-d') && nextArg) {
7878
destination = nextArg
7979
i++ // Skip next arg as it's the value
80-
} else if ((arg === '--name' || arg === '-n') && nextArg) {
80+
} else if ((arg === '--project-name' || arg === '-n') && nextArg) {
8181
projectName = nextArg
8282
i++
8383
} else if (arg === '--help' || arg === '-h') {
@@ -107,15 +107,15 @@ export default class Boostrap {
107107
STARTER Which template to setup (required)
108108
109109
Options:
110-
--dir, -d DIR Destination directory (default: ./node-app)
111-
--name, -n NAME Project name used in config files (default: directory basename)
112-
--help, -h Show this help message
110+
--dir, -d DIR Destination directory (default: ./node-app)
111+
--project-name, -n NAME Google Cloud project name (default: directory basename)
112+
--help, -h Show this help message
113113
114114
Examples:
115115
create-node-app cloudrun
116116
create-node-app cloudrun --dir ./my-app
117-
create-node-app cloudrun --name my-project
118-
create-node-app cloudrun --dir ./my-app --name my-project
117+
create-node-app cloudrun --project-name my-project
118+
create-node-app cloudrun --dir ./my-app --project-name my-project
119119
120120
Starters available:
121121
cloudrun Cloud Run + express

0 commit comments

Comments
 (0)