Add a flag
@@ -99,6 +99,8 @@ public final class OptionsParser {
private String targetLabel;
private String injectingRuleKind;
+ private @Nullable String profile;
+
/**
* Constructs an {@code OptionsParser} from a list of command args. Sets the same JavacRunner for
* both compilation and annotation processing.
@@ -215,6 +217,9 @@ public final class OptionsParser {
case "--injecting_rule_kind":
injectingRuleKind = getArgument(argQueue, arg);
break;
+ case "--profile":
+ profile = getArgument(argQueue, arg);
+ break;
default:
throw new InvalidCommandLineException("unknown option : '" + arg + "'");
}
@@ -464,4 +469,8 @@ public final class OptionsParser {
public String getInjectingRuleKind() {
return injectingRuleKind;
}
+
+ public String getProfile() {
+ return profile;
+ }
}
