We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b42fb05 commit c309ad2Copy full SHA for c309ad2
src/main/java/picocli/CommandLine.java
@@ -18711,7 +18711,7 @@ private static String str(List<String> list) {
18711
private List<String> prefixCommandName(List<String> suggestions)
18712
{
18713
String commandName = this.commandLine.commandSpec.name;
18714
- if(commandName == null || commandName.trim().isEmpty()) { return suggestions; }
+ if(commandName == null || commandName.trim().length() == 0) { return suggestions; }
18715
List<String> prefixedSuggestions = new ArrayList<String>();
18716
for (String s : suggestions) {
18717
prefixedSuggestions.add(commandName + " " + s);
0 commit comments