Add -cp to option help for compiler commands

Fixes gh-178
This commit is contained in:
Dave Syer 2013-12-31 12:24:49 +00:00
parent da889efde7
commit 045088e8b3
2 changed files with 4 additions and 1 deletions

View File

@ -168,6 +168,9 @@ public class OptionHandler {
for (String option : descriptor.options()) {
this.options.add((option.length() == 1 ? "-" : "--") + option);
}
if (this.options.contains("--cp")) {
this.options.add("-cp");
}
this.description = descriptor.description();
}

View File

@ -98,7 +98,7 @@ public class CliTester implements TestRule {
final String[] sources = new String[args.length];
for (int i = 0; i < args.length; i++) {
String arg = args[i];
if (arg.startsWith("--")) {
if (arg.startsWith("-")) {
sources[i] = arg;
}
else {