diff options
author | Clifford Wolf <clifford@clifford.at> | 2013-03-01 00:36:19 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2013-03-01 00:36:19 +0100 |
commit | 7fccad92f76ddeee653d5dfec17868e9766a683a (patch) | |
tree | c85e80d5652780f3b543e5937f6e7c6a1d191778 /kernel | |
parent | cd71c70b4f55c89cdcfd6da23ff5f2002cb7d49d (diff) | |
download | yosys-7fccad92f76ddeee653d5dfec17868e9766a683a.tar.gz yosys-7fccad92f76ddeee653d5dfec17868e9766a683a.tar.bz2 yosys-7fccad92f76ddeee653d5dfec17868e9766a683a.zip |
Added more help messages
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/driver.cc | 2 | ||||
-rw-r--r-- | kernel/register.cc | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/kernel/driver.cc b/kernel/driver.cc index 94c6b39bb..ce648d0ad 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 c1aa50dd5..7b670ccea 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; } |