mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-27 06:27:57 +00:00
cmdref: Drop optiongroups
Linking to optiongroups doesn't add *that* much, and is kind of a pain; meanwhile having the optiongroups adds an extra level of indentation. Instead of options needing to be in an option group, they instead go in either the root node or nested in a usage node. Putting them in a usage node allows for more-or-less the previous behaviour but without making it the default.
This commit is contained in:
parent
7ebccd2dea
commit
da9bf5d610
7 changed files with 118 additions and 149 deletions
|
@ -68,7 +68,7 @@ public:
|
|||
}
|
||||
|
||||
void usage(
|
||||
const string &usage,
|
||||
const string &text,
|
||||
const source_location location = source_location::current()
|
||||
);
|
||||
void option(
|
||||
|
@ -86,8 +86,8 @@ public:
|
|||
const source_location location = source_location::current()
|
||||
);
|
||||
|
||||
ContentListing* open_optiongroup(
|
||||
const string &name = "",
|
||||
ContentListing* open_usage(
|
||||
const string &text,
|
||||
const source_location location = source_location::current()
|
||||
);
|
||||
ContentListing* open_option(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue