3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-23 22:33:41 +00:00

log_help: Options can have content

Refactor `PrettyHelp::endgroup()` -> `PrettyHelp::close(int levels = 1)`.
This commit is contained in:
Krystine Sherwin 2025-03-21 10:25:45 +13:00
parent af9e0dd0f4
commit 40e6fe8263
No known key found for this signature in database
3 changed files with 27 additions and 15 deletions

View file

@ -38,12 +38,13 @@ public:
bool has_content();
void usage(const string &usage);
void option(const string &option, const string &description = "");
void option(const string &text, const string &description = "");
void codeblock(const string &code, const string &language = "none");
void paragraph(const string &text);
void optiongroup(const string &group = "");
void endgroup();
void open_optiongroup(const string &group = "");
void open_option(const string &text);
void close(int levels = 1);
};
YOSYS_NAMESPACE_END