Skip to content

Commit 8e1a3f6

Browse files
committed
Ensure zsh completions are correctly generated
1 parent e8937ab commit 8e1a3f6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

java/src/org/openqa/selenium/grid/commands/CompletionCommand.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ public Executable configure(PrintStream out, PrintStream err, String... args) {
9292
commander.parse();
9393
}
9494

95+
if (commander.getParsedCommand() == null) {
96+
err.println("No shell given. Possible shells are: zsh");
97+
System.exit(1);
98+
}
99+
95100
switch (commander.getParsedCommand()) {
96101
case "zsh":
97102
outputZshCompletions(out);
@@ -186,6 +191,7 @@ private String getZshType(DescribedOption option) {
186191
return ":(true false)";
187192

188193
case "int":
194+
case "integer":
189195
return ":int";
190196

191197
case "list of strings":

0 commit comments

Comments
 (0)