Skip to content

Commit

Permalink
Working on primary version of color assign opts
Browse files Browse the repository at this point in the history
  • Loading branch information
grunt-lucas committed Oct 1, 2023
1 parent 23858a8 commit 636e259
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
18 changes: 18 additions & 0 deletions include/cli_options.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,24 @@ const std::string BEST_BRANCHES_DESC =
" instead of just a constant integer cutoff.\n";
constexpr int BEST_BRANCHES_VAL = 3002;

const std::string PRIMARY_ASSIGN_EXPLORE_CUTOFF = "primary-assign-explore-cutoff";
const std::string PRIMARY_ASSIGN_EXPLORE_CUTOFF_DESC =
" -" + PRIMARY_ASSIGN_EXPLORE_CUTOFF + "=<FACTOR>\n"
" Same as '-assign-explore-cutoff', but for the paired primary set.\n";
constexpr int PRIMARY_ASSIGN_EXPLORE_CUTOFF_VAL = 3003;

const std::string PRIMARY_ASSIGN_ALGO = "primary-assign-algorithm";
const std::string PRIMARY_ASSIGN_ALGO_DESC =
" -" + PRIMARY_ASSIGN_ALGO + "=<ALGORITHM>\n"
" Same as '-assign-algorithm', but for the paired primary set.\n";
constexpr int PRIMARY_ASSIGN_ALGO_VAL = 3004;

const std::string PRIMARY_BEST_BRANCHES = "primary-best-branches";
const std::string PRIMARY_BEST_BRANCHES_DESC =
" -" + PRIMARY_BEST_BRANCHES + "=<N>\n"
" Same as '-best-branches', but for the paired primary set.\n";
constexpr int PRIMARY_BEST_BRANCHES_VAL = 3005;


// Fieldmap override options

Expand Down
15 changes: 15 additions & 0 deletions src/cli_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,9 @@ DEFAULT_BEHAVIOR_DESC + "\n" +
ASSIGN_EXPLORE_CUTOFF_DESC + "\n" +
ASSIGN_ALGO_DESC + "\n" +
BEST_BRANCHES_DESC + "\n" +
PRIMARY_ASSIGN_EXPLORE_CUTOFF_DESC + "\n" +
PRIMARY_ASSIGN_ALGO_DESC + "\n" +
PRIMARY_BEST_BRANCHES_DESC + "\n" +
" Fieldmap Override Options\n" +
TILES_PRIMARY_OVERRIDE_DESC + "\n" +
TILES_TOTAL_OVERRIDE_DESC + "\n" +
Expand Down Expand Up @@ -390,6 +393,9 @@ static void parseSubcommandOptions(PtContext &ctx, int argc, char *const *argv)
{ASSIGN_EXPLORE_CUTOFF.c_str(), required_argument, nullptr, ASSIGN_EXPLORE_CUTOFF_VAL},
{ASSIGN_ALGO.c_str(), required_argument, nullptr, ASSIGN_ALGO_VAL},
{BEST_BRANCHES.c_str(), required_argument, nullptr, BEST_BRANCHES_VAL},
{PRIMARY_ASSIGN_EXPLORE_CUTOFF.c_str(), required_argument, nullptr, PRIMARY_ASSIGN_EXPLORE_CUTOFF_VAL},
{PRIMARY_ASSIGN_ALGO.c_str(), required_argument, nullptr, PRIMARY_ASSIGN_ALGO_VAL},
{PRIMARY_BEST_BRANCHES.c_str(), required_argument, nullptr, PRIMARY_BEST_BRANCHES_VAL},

// Fieldmap override options
{TILES_PRIMARY_OVERRIDE.c_str(), required_argument, nullptr, TILES_PRIMARY_OVERRIDE_VAL},
Expand Down Expand Up @@ -530,6 +536,15 @@ static void parseSubcommandOptions(PtContext &ctx, int argc, char *const *argv)
}
}
break;
case PRIMARY_ASSIGN_EXPLORE_CUTOFF_VAL:
// TODO : impl primary version of option
break;
case PRIMARY_ASSIGN_ALGO_VAL:
// TODO : impl primary version of option
break;
case PRIMARY_BEST_BRANCHES_VAL:
// TODO : impl primary version of option
break;

// Fieldmap override options
case TILES_PRIMARY_OVERRIDE_VAL:
Expand Down

0 comments on commit 636e259

Please sign in to comment.