in blingfiretools/fa_fsm2fsm_pack/fa_fsm2fsm_pack.cpp [209:330]
void process_args (int& argc, char**& argv)
{
for (; argc--; ++argv) {
if (!strcmp ("--help", *argv)) {
usage ();
exit (0);
}
if (0 == strcmp ("--no-output", *argv)) {
g_no_output = true;
continue;
}
if (0 == strcmp ("--no-process", *argv)) {
g_no_process= true;
continue;
}
if (0 == strcmp ("--remap-iws", *argv)) {
g_remap_iws = true;
continue;
}
if (0 == strcmp ("--use-iwia", *argv)) {
g_use_iwia = true;
continue;
}
if (0 == strcmp ("--force-flat", *argv)) {
g_force_flat = true;
continue;
}
if (0 == strcmp ("--use-ranges", *argv)) {
g_use_ranges = true;
continue;
}
if (0 == strncmp ("--in=", *argv, 5)) {
g_pInFsmFile = &((*argv) [5]);
continue;
}
if (0 == strncmp ("--out=", *argv, 6)) {
g_pOutFsmFile = &((*argv) [6]);
continue;
}
if (0 == strncmp ("--trbr-maps=", *argv, 12)) {
g_pInTrBrFile = &((*argv) [12]);
continue;
}
if (0 == strncmp ("--iw-map=", *argv, 9)) {
g_pInIwMapFile = &((*argv) [9]);
continue;
}
if (0 == strcmp ("--alg=triv", *argv)) {
g_alg = FAFsmConst::MODE_PACK_TRIV;
continue;
}
if (0 == strcmp ("--alg=mph", *argv)) {
g_alg = FAFsmConst::MODE_PACK_MPH;
continue;
}
if (0 == strcmp ("--alg=fixed", *argv)) {
g_alg = FAFsmConst::MODE_PACK_FIXED;
continue;
}
if (0 == strcmp ("--type=rs-dfa", *argv)) {
g_type = FAFsmConst::TYPE_RS_DFA;
continue;
}
if (0 == strcmp ("--type=pos-nfa", *argv)) {
g_type = FAFsmConst::TYPE_POS_RS_NFA;
continue;
}
if (0 == strcmp ("--type=moore-dfa", *argv)) {
g_type = FAFsmConst::TYPE_MOORE_DFA;
continue;
}
if (0 == strcmp ("--type=moore-mdfa", *argv)) {
g_type = FAFsmConst::TYPE_MOORE_MULTI_DFA;
continue;
}
if (0 == strcmp ("--type=mealy-dfa", *argv)) {
g_type = FAFsmConst::TYPE_MEALY_DFA;
continue;
}
if (0 == strcmp ("--type=mmap", *argv)) {
g_type = FAFsmConst::TYPE_MULTI_MAP;
continue;
}
if (0 == strcmp ("--type=arr", *argv)) {
g_type = FAFsmConst::TYPE_ARRAY;
continue;
}
if (0 == strcmp ("--type=farr", *argv)) {
g_type = FAFsmConst::TYPE_FLOAT_ARRAY;
continue;
}
if (0 == strcmp ("--type=sarr", *argv)) {
g_type = FAFsmConst::TYPE_STRING_ARRAY;
continue;
}
if (0 == strcmp ("--imp-mmap", *argv)) {
g_imp_mmap = true;
continue;
}
if (0 == strcmp ("--dir=l2r", *argv)) {
g_dir = FAFsmConst::DIR_L2R;
continue;
}
if (0 == strcmp ("--dir=r2l", *argv)) {
g_dir = FAFsmConst::DIR_R2L;
continue;
}
if (0 == strncmp ("--dst-size=", *argv, 11)) {
g_DstSize = atoi (&((*argv) [11]));
continue;
}
if (0 == strncmp ("--text-value", *argv, 12)) {
g_text_value = true;
continue;
}
if (0 == strcmp ("--auto-test", *argv)) {
g_auto_test = true;
continue;
}
}
}