summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2013-03-01 00:36:19 +0100
committerClifford Wolf <clifford@clifford.at>2013-03-01 00:36:19 +0100
commit7fccad92f76ddeee653d5dfec17868e9766a683a (patch)
treec85e80d5652780f3b543e5937f6e7c6a1d191778 /kernel
parentcd71c70b4f55c89cdcfd6da23ff5f2002cb7d49d (diff)
Added more help messages
Diffstat (limited to 'kernel')
-rw-r--r--kernel/driver.cc2
-rw-r--r--kernel/register.cc5
2 files changed, 6 insertions, 1 deletions
diff --git a/kernel/driver.cc b/kernel/driver.cc
index 94c6b39b..ce648d0a 100644
--- a/kernel/driver.cc
+++ b/kernel/driver.cc
@@ -210,6 +210,8 @@ struct ShellPass : public Pass {
log("This command is the default action if nothing else has been specified\n");
log("on the command line.\n");
log("\n");
+ log("Press Ctrl-D to leave the interactive shell.\n");
+ log("\n");
}
virtual void execute(std::vector<std::string>, RTLIL::Design *design) {
shell(design);
diff --git a/kernel/register.cc b/kernel/register.cc
index c1aa50dd..7b670cce 100644
--- a/kernel/register.cc
+++ b/kernel/register.cc
@@ -146,7 +146,7 @@ void Pass::call(RTLIL::Design *design, std::vector<std::string> args)
if (args.size() == 0 || args[0][0] == '#')
return;
if (pass_register.count(args[0]) == 0)
- log_cmd_error("No such command: %s\n", args[0].c_str());
+ log_cmd_error("No such command: %s (type 'help' for a command overview)\n", args[0].c_str());
size_t orig_sel_stack_pos = design->selection_stack.size();
pass_register[args[0]]->execute(args, design);
@@ -356,6 +356,9 @@ struct HelpPass : public Pass {
log("\n");
for (auto &it : REGISTER_INTERN::pass_register)
log(" %-20s %s\n", it.first.c_str(), it.second->short_help.c_str());
+ log("\n");
+ log("Type 'help <command>' for more information on a command.\n");
+ log("\n");
return;
}