Skip to content
Snippets Groups Projects
Commit 555fa16a authored by Jaime Arias's avatar Jaime Arias
Browse files

fix cli

parent 726d0320
No related branches found
No related tags found
No related merge requests found
......@@ -228,21 +228,20 @@ int main(int argc, char** argv) {
->fallthrough();
std::string obs_file;
generate->add_option("--obs-file", obs_file, "Observable transitions")
->type_name("Path")
->check(CLI::ExistingFile);
bool all{false};
generate->add_flag("--all", all,
"Cover all observable transitions (default: false)");
CLI::Option* opt_transitions =
generate
->add_option("--obs-file", obs_file,
"Cover transitions from file [default: all transitions]")
->type_name("Path")
->check(CLI::ExistingFile);
// reach->callback([&]() {});
// sog->callback([&]() {});
generate->callback([&]() {
if (all) {
generate_all_paths(input_file, output_folder);
} else {
if (*opt_transitions) {
generate_paths_from_file(input_file, obs_file, output_folder);
} else {
generate_all_paths(input_file, output_folder);
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment