test(tests): addded new tests

This commit is contained in:
2026-07-01 11:14:32 -04:00
parent 39e5117a24
commit 9aaa8529e0
3 changed files with 51 additions and 27 deletions

View File

@@ -101,10 +101,8 @@ int main(int argc, char** argv) {
mode_map[to_lower(std::string(name))] = value;
}
// 2. Storage variable is now the actual Enum type
stroid::IO::VISUALIZATION_MODE selected_mode;
// 3. One line to rule them all
view->add_option("-v,--vis-mode", selected_mode, "Select Visualization mode")
->transform(CLI::CheckedTransformer(mode_map, CLI::ignore_case))
->default_val(stroid::IO::VISUALIZATION_MODE::ELEMENT_ID);
@@ -143,8 +141,6 @@ int main(int argc, char** argv) {
});
}
// generate->require_subcommand(1);
info->add_flag_callback("-v,--version", []() {
std::println("Stroid Version {}", stroid::version::toString());
exit(0);