Skip to content

Commit 49a5587

Browse files
committed
Fully support -cp arguments
The CLI application advertises `-cp` support but it appears that only `--cp` is really supported. The fix for gh-178 forgot to update the call to `getParser().parse(...)`. See gh-178
1 parent f08f872 commit 49a5587

File tree

1 file changed

+1
-1
lines changed
  • spring-boot-cli/src/main/java/org/springframework/boot/cli/command/options

1 file changed

+1
-1
lines changed

spring-boot-cli/src/main/java/org/springframework/boot/cli/command/options/OptionHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public final ExitStatus run(String... args) throws Exception {
8787
argsToUse[i] = "--cp";
8888
}
8989
}
90-
OptionSet options = getParser().parse(args);
90+
OptionSet options = getParser().parse(argsToUse);
9191
return run(options);
9292
}
9393

0 commit comments

Comments
 (0)