mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-23 17:59:03 +00:00
Polish CommandCompleter
Closes gh-14339
This commit is contained in:
committed by
Stephane Nicoll
parent
9b9a8888b4
commit
4fc2806089
+1
-6
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user