Skip to content

Commit

Permalink
#121 bugfix in generated function for top-level command
Browse files Browse the repository at this point in the history
  • Loading branch information
remkop committed Jul 28, 2017
1 parent 63223a0 commit 955938d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/picocli/AutoComplete.java
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ private static String generateEntryPointFunction(String scriptName,
predecessors.add(scriptName);
List<String> functionCallsToArrContains = new ArrayList<String>();

function2command.put(scriptName, commandLine);
function2command.put("_picocli_" + scriptName, commandLine);
generateFunctionCallsToArrContains(predecessors, commandLine, buff, functionCallsToArrContains, function2command);

buff.append("\n");
Expand Down

0 comments on commit 955938d

Please sign in to comment.