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:
parent
3bef122a3f
commit
10fea26fa9
3 changed files with 27 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue