Skip to content

Commit ff26c33

Browse files
committed
Added --name to autocompletion
1 parent 2c31c2c commit ff26c33

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Sources/HazelCore/Support/Completion.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ struct Completion {
2020
],
2121
"init": [
2222
"--template": "Choose project template",
23-
"-t": "Choose project template",
23+
"-t": "Set the project name (leave empty to use the current directory name)",
24+
"--name": "Set the project name (leave empty to use the current directory name)",
25+
"-n": "Choose project template",
2426
"--help": "Print help message and exit",
2527
"-h": "Print help message and exit",
2628
"--author": "Set author name",
@@ -89,6 +91,8 @@ struct Completion {
8991
switch argument {
9092
case "--template", "-t":
9193
return !arguments.contains("--template") && !arguments.contains("-t")
94+
case "--name", "-n":
95+
return !arguments.contains("--name") && !arguments.contains("-n")
9296
case "--author", "-a":
9397
return !arguments.contains("--author") && !arguments.contains("-a")
9498
case "--email", "-e":

0 commit comments

Comments
 (0)