Browse Source

Fix CLI help formatting issue with '-cp'

Ensure that '--cp' is replaced with a same length string to prevent
odd help text formatting.
pull/234/head
Phillip Webb 12 years ago
parent
commit
cad9fbfdf0
  1. 2
      spring-boot-cli/src/main/java/org/springframework/boot/cli/command/OptionHandler.java

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

@ -112,7 +112,7 @@ public class OptionHandler {
catch (IOException ex) { catch (IOException ex) {
return "Help not available"; return "Help not available";
} }
this.help = out.toString().replace(" --cp ", " -cp "); this.help = out.toString().replace(" --cp ", " -cp ");
} }
return this.help; return this.help;
} }

Loading…
Cancel
Save