Make config options available to legacy commands
This commit is contained in:
parent
c9c3fc710b
commit
5ef5d70b5e
2 changed files with 4 additions and 4 deletions
|
@ -34,6 +34,10 @@ MixCommonArgs::MixCommonArgs(const string & programName)
|
||||||
warn(e.what());
|
warn(e.what());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
std::string cat = "config";
|
||||||
|
settings.convertToArgs(*this, cat);
|
||||||
|
hiddenCategories.insert(cat);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,10 +43,6 @@ struct NixArgs : virtual MultiCommand, virtual MixCommonArgs
|
||||||
.longName("version")
|
.longName("version")
|
||||||
.description("show version information")
|
.description("show version information")
|
||||||
.handler([&]() { printVersion(programName); });
|
.handler([&]() { printVersion(programName); });
|
||||||
|
|
||||||
std::string cat = "config";
|
|
||||||
settings.convertToArgs(*this, cat);
|
|
||||||
hiddenCategories.insert(cat);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void printFlags(std::ostream & out) override
|
void printFlags(std::ostream & out) override
|
||||||
|
|
Loading…
Reference in a new issue