Commit 045088e8 authored by Dave Syer's avatar Dave Syer

Add -cp to option help for compiler commands

Fixes gh-178
parent da889efd
...@@ -168,6 +168,9 @@ public class OptionHandler { ...@@ -168,6 +168,9 @@ public class OptionHandler {
for (String option : descriptor.options()) { for (String option : descriptor.options()) {
this.options.add((option.length() == 1 ? "-" : "--") + option); this.options.add((option.length() == 1 ? "-" : "--") + option);
} }
if (this.options.contains("--cp")) {
this.options.add("-cp");
}
this.description = descriptor.description(); this.description = descriptor.description();
} }
......
...@@ -98,7 +98,7 @@ public class CliTester implements TestRule { ...@@ -98,7 +98,7 @@ public class CliTester implements TestRule {
final String[] sources = new String[args.length]; final String[] sources = new String[args.length];
for (int i = 0; i < args.length; i++) { for (int i = 0; i < args.length; i++) {
String arg = args[i]; String arg = args[i];
if (arg.startsWith("--")) { if (arg.startsWith("-")) {
sources[i] = arg; sources[i] = arg;
} }
else { else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment