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:
parent
af9e0dd0f4
commit
40e6fe8263
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