Merge pull request #14339 from dreis2211:polish-commandcompleter

* pr/14339:
  Polish CommandCompleter
pull/14354/head
Stephane Nicoll 6 years ago
commit 36e89f900f

@ -127,12 +127,7 @@ public class CommandCompleter extends StringsCompleter {
private final String usage;
OptionHelpLine(OptionHelp optionHelp) {
StringBuilder options = new StringBuilder();
for (String option : optionHelp.getOptions()) {
options.append((options.length() != 0) ? ", " : "");
options.append(option);
}
this.options = options.toString();
this.options = String.join(", ", optionHelp.getOptions());
this.usage = optionHelp.getUsageHelp();
}

Loading…
Cancel
Save