3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-23 09:05:32 +00:00

Added more help messages

This commit is contained in:
Clifford Wolf 2013-03-01 00:36:19 +01:00
parent cd71c70b4f
commit 7fccad92f7
9 changed files with 121 additions and 11 deletions

View file

@ -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);

View file

@ -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;
}