Show help desk when a command is called inside shell without satisfying the dependency
This commit is contained in:
parent
aff73bdd74
commit
3aca7b498c
|
@ -373,6 +373,8 @@ void Shell<T>::execute_command(const char* cmd_line,
|
||||||
if (false == command_status_[dep_cmd]) {
|
if (false == command_status_[dep_cmd]) {
|
||||||
VTR_LOG("Command '%s' is required to be executed before command '%s'!\n",
|
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());
|
commands_[dep_cmd].name().c_str(), commands_[cmd_id].name().c_str());
|
||||||
|
/* Echo the command help desk */
|
||||||
|
print_command_options(commands_[cmd_id]);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue