Commit cefe88fb authored by Malte Heithoff's avatar Malte Heithoff

BaseOptions

parent 28ccb56c
Pipeline #363075 passed with stage
in 10 minutes and 54 seconds
......@@ -135,14 +135,19 @@ public final class GeneratorCppCli {
public static Options getOptions() {
Options options = new Options();
addBaseOptions(options);
addEMAM2CPPOptions(options);
return options;
}
public static void addEMAM2CPPOptions(Options options) {
public static void addBaseOptions(Options options) {
options.addOption(OPTION_MODELS_PATH);
options.addOption(OPTION_ROOT_MODEL);
options.addOption(OPTION_OUTPUT_PATH);
options.addOption(OPTION_FLAG_CMAKE);
}
public static void addEMAM2CPPOptions(Options options) {
options.addOption(OPTION_FLAG_TESTS);
options.addOption(OPTION_FLAG_ARMADILLO);
options.addOption(OPTION_FLAG_AUTOPILOT_ADAPTER);
......@@ -151,7 +156,6 @@ public final class GeneratorCppCli {
options.addOption(OPTION_FLAG_ALGEBRAIC);
options.addOption(OPTION_FLAG_THREADING);
options.addOption(OPTION_FLAG_EXEC_LOGGING);
options.addOption(OPTION_FLAG_CMAKE);
}
public static CommandLine parseArgs(Options options, CommandLineParser parser, String[] args) {
......
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