Improves flag error handling for GwtIncompatibleStripper.
@@ -30,9 +30,9 @@ public class StripperFlags {
@Option(
name = "-d",
+ required = true,
metaVar = "<file>",
- usage = "The location into which to place output srcjar."
- )
+ usage = "The location into which to place output srcjar.")
protected String outputPath;
protected static StripperFlags parse(String[] args, Problems problems) {
@@ -46,6 +46,7 @@ public class StripperFlags {
message += "Valid options: \n" + parser.printExample(OptionHandlerFilter.ALL);
message += "\nuse -help for a list of possible options in more details";
problems.error(message);
+ problems.abort();
}
return flags;
}
