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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user