Skip to content

Commit

Permalink
Ensure zsh completions are correctly generated
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Oct 7, 2021
1 parent e8937ab commit 8e1a3f6
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ public Executable configure(PrintStream out, PrintStream err, String... args) {
commander.parse();
}

if (commander.getParsedCommand() == null) {
err.println("No shell given. Possible shells are: zsh");
System.exit(1);
}

switch (commander.getParsedCommand()) {
case "zsh":
outputZshCompletions(out);
Expand Down Expand Up @@ -186,6 +191,7 @@ private String getZshType(DescribedOption option) {
return ":(true false)";

case "int":
case "integer":
return ":int";

case "list of strings":
Expand Down

0 comments on commit 8e1a3f6

Please sign in to comment.