3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-07-27 06:27:57 +00:00

log_help: Options can have content

Refactor `PrettyHelp::endgroup()` -> `PrettyHelp::close(int levels = 1)`.
This commit is contained in:
Krystine Sherwin 2025-07-21 10:34:11 +12:00
parent 3bef122a3f
commit 10fea26fa9
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