3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-16 13:58:47 +00:00

cmdref: Format help_script() output as yoscrypt

Or at least all of the synth commands, because they have the same preceding text.
Except `synth_fabulous`, because that has unconditional `read_verilog`s at the start.  Which seems like a bad idea and and not compatible with `-run`?
This commit is contained in:
Krystine Sherwin 2025-03-21 10:28:48 +13:00
parent b1c9097a12
commit a2433ba34b
No known key found for this signature in database

View file

@ -974,7 +974,11 @@ struct HelpPass : public Pass {
}
if (!current_buffer.empty()) {
current_listing->codeblock(current_buffer, "none", null_source);
if (current_buffer.size() > 64 && current_buffer.substr(0, 64).compare("The following commands are executed by this synthesis command:\n\n") == 0) {
current_listing->paragraph(current_buffer.substr(0, 62), null_source);
current_listing->codeblock(current_buffer.substr(64), "yoscrypt", null_source);
} else
current_listing->codeblock(current_buffer, "none", null_source);
current_buffer = "";
}
}