Show help desk when a command is called inside shell without satisfying the dependency

This commit is contained in:
tangxifan 2020-03-09 09:34:21 -06:00
parent aff73bdd74
commit 3aca7b498c
1 changed files with 2 additions and 0 deletions

View File

@ -373,6 +373,8 @@ void Shell<T>::execute_command(const char* cmd_line,
if (false == command_status_[dep_cmd]) {
VTR_LOG("Command '%s' is required to be executed before command '%s'!\n",
commands_[dep_cmd].name().c_str(), commands_[cmd_id].name().c_str());
/* Echo the command help desk */
print_command_options(commands_[cmd_id]);
return;
}
}