diff --git a/SDK/CPP/public/samples/common/cmd_args.cpp b/SDK/CPP/public/samples/common/cmd_args.cpp index 7219fb2158134b7bd9975cb49db6f97d2adcac3b..06812875cbb13919d65363d1c0d1ffc04f1860ea 100644 --- a/SDK/CPP/public/samples/common/cmd_args.cpp +++ b/SDK/CPP/public/samples/common/cmd_args.cpp @@ -20,10 +20,10 @@ std::map<std::string, std::string> read_options(char ***argv, int *argc) #else if (std::isdigit(val[0]) || val == "true" || val == "false" || val == "null") { #endif - opts[cmd.substr(0, p-2)] = val; + opts[cmd.substr(0, p)] = val; } else { if (val[0] == '\\') opts[cmd.substr(2, p-2)] = val; - else opts[cmd.substr(0, p-2)] = "\""+val+"\""; + else opts[cmd.substr(0, p)] = "\""+val+"\""; } } diff --git a/SDK/CPP/public/samples/fusion_evaluator/main.cpp b/SDK/CPP/public/samples/fusion_evaluator/main.cpp index 06d7567abe8be27daf0ecefddea5cc137ffadb4a..d73bde963be2495de9984fbd1de5211556463bef 100644 --- a/SDK/CPP/public/samples/fusion_evaluator/main.cpp +++ b/SDK/CPP/public/samples/fusion_evaluator/main.cpp @@ -23,13 +23,15 @@ int main(int argc, char **argv) for (const auto &s : opts) { + cout << "ARGS " << s.first << " " << s.second << endl; if (s.first == "--no-fusion") { do_fusion = false; } else if (s.first == "--display") { - if (s.second == "normals") + cout << "DISPLAY = " << s.second << endl; + if (s.second == "\"normals\"") { display_channel = voltu::Channel::kNormals; }