From 3aca7b498cdfb27a06d33b8124224e6686aacd32 Mon Sep 17 00:00:00 2001 From: tangxifan Date: Mon, 9 Mar 2020 09:34:21 -0600 Subject: [PATCH] Show help desk when a command is called inside shell without satisfying the dependency --- libopenfpga/libopenfpgashell/src/shell.tpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libopenfpga/libopenfpgashell/src/shell.tpp b/libopenfpga/libopenfpgashell/src/shell.tpp index 72ebe5168..5bd4ec56c 100644 --- a/libopenfpga/libopenfpgashell/src/shell.tpp +++ b/libopenfpga/libopenfpgashell/src/shell.tpp @@ -373,6 +373,8 @@ void Shell::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; } }