diff --git a/libs/libopenfpgashell/src/shell.tpp b/libs/libopenfpgashell/src/shell.tpp index 3afeef4b6..eb4ec02c3 100644 --- a/libs/libopenfpgashell/src/shell.tpp +++ b/libs/libopenfpgashell/src/shell.tpp @@ -420,13 +420,13 @@ void Shell::print_commands(const bool& show_hidden) const { } /* Print the class name */ - if (show_hidden && hidden_class) { + if (!show_hidden && hidden_class) { continue; } VTR_LOG("%s:\n", command_class_names_[cmd_class].c_str()); for (const ShellCommandId& cmd : commands_by_classes_[cmd_class]) { - if (show_hidden && command_hidden_[cmd]) { + if (!show_hidden && command_hidden_[cmd]) { continue; } VTR_LOG("\t%s\n", commands_[cmd].name().c_str());