Add -cp to option help for compiler commands
Fixes gh-178
This commit is contained in:
parent
da889efde7
commit
045088e8b3
|
@ -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 {
|
||||||
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 {
|
||||||
|
|
Loading…
Reference in New Issue