mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-27 19:05:52 +00:00
Added -color <color> <selection> option to show command
This commit is contained in:
parent
9b1ce98db6
commit
3ec9fa4048
4 changed files with 101 additions and 22 deletions
|
@ -135,9 +135,6 @@ void Pass::cmd_error(const std::vector<std::string> &args, size_t argidx, std::s
|
|||
msg.c_str(), command_text.c_str(), error_pos, "");
|
||||
}
|
||||
|
||||
// implemented in kernel/select.cc
|
||||
extern void handle_extra_select_args(Pass *pass, std::vector<std::string> args, size_t argidx, RTLIL::Design *design);
|
||||
|
||||
void Pass::extra_args(std::vector<std::string> args, size_t argidx, RTLIL::Design *design, bool select)
|
||||
{
|
||||
for (; argidx < args.size(); argidx++)
|
||||
|
@ -150,7 +147,7 @@ void Pass::extra_args(std::vector<std::string> args, size_t argidx, RTLIL::Desig
|
|||
if (!select)
|
||||
cmd_error(args, argidx, "Extra argument.");
|
||||
|
||||
handle_extra_select_args(this, args, argidx, design);
|
||||
handle_extra_select_args(this, args, argidx, args.size(), design);
|
||||
break;
|
||||
}
|
||||
cmd_log_args(args);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue