mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-16 13:58:47 +00:00
log_help: Add manual group support
Sets `chformal` group to "formal" for testing purposes
This commit is contained in:
parent
1efd3aeb7d
commit
aedc13ab7f
|
@ -53,6 +53,7 @@ struct ContentListing {
|
|||
class PrettyHelp
|
||||
{
|
||||
public:
|
||||
string group = "unknown";
|
||||
enum Mode {
|
||||
LOG,
|
||||
LISTING,
|
||||
|
@ -89,6 +90,9 @@ public:
|
|||
return content;
|
||||
}
|
||||
|
||||
void set_group(const string g) { group = g; }
|
||||
bool has_group() { return group.compare("unknown") != 0; }
|
||||
|
||||
void usage(
|
||||
const string &usage,
|
||||
const source_location location = source_location::current()
|
||||
|
|
|
@ -75,6 +75,7 @@ struct ChformalPass : public Pass {
|
|||
|
||||
bool help_v2() override {
|
||||
auto *help = PrettyHelp::get_current();
|
||||
help->set_group("formal");
|
||||
help->usage("chformal [types] [mode] [options] [selection]");
|
||||
help->paragraph(
|
||||
"Make changes to the formal constraints of the design. The [types] options "
|
||||
|
|
Loading…
Reference in a new issue