mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-27 06:27:57 +00:00
Rename help_v2 to formatted_help
Also add comments to `help()` and `formatted_help()` to clarify usage.
This commit is contained in:
parent
23a066f71f
commit
605f12c2ae
3 changed files with 7 additions and 5 deletions
|
@ -118,14 +118,14 @@ void Pass::post_execute(Pass::pre_post_exec_state_t state)
|
|||
|
||||
void Pass::help()
|
||||
{
|
||||
if (!help_v2()) {
|
||||
if (!formatted_help()) {
|
||||
log("\n");
|
||||
log("No help message for command `%s'.\n", pass_name.c_str());
|
||||
log("\n");
|
||||
}
|
||||
}
|
||||
|
||||
bool Pass::help_v2()
|
||||
bool Pass::formatted_help()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -825,7 +825,7 @@ struct HelpPass : public Pass {
|
|||
auto experimental_flag = pass->experimental_flag;
|
||||
|
||||
auto cmd_help = PrettyHelp(PrettyHelp::Mode::LISTING);
|
||||
auto has_pretty_help = pass->help_v2();
|
||||
auto has_pretty_help = pass->formatted_help();
|
||||
|
||||
if (!has_pretty_help) {
|
||||
enum PassUsageState {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue