mirror of
https://github.com/NixOS/nix.git
synced 2025-11-12 05:26:02 +01:00
addFlag: use aliases
This commit is contained in:
parent
8ce4287409
commit
74dccef004
3 changed files with 7 additions and 0 deletions
|
|
@ -81,6 +81,7 @@ void BaseSetting<T>::convertToArg(Args & args, const std::string & category)
|
|||
{
|
||||
args.addFlag({
|
||||
.longName = name,
|
||||
.aliases = aliases,
|
||||
.description = fmt("Set the `%s` setting.", name),
|
||||
.category = category,
|
||||
.labels = {"value"},
|
||||
|
|
@ -91,6 +92,7 @@ void BaseSetting<T>::convertToArg(Args & args, const std::string & category)
|
|||
if (isAppendable())
|
||||
args.addFlag({
|
||||
.longName = "extra-" + name,
|
||||
.aliases = aliases,
|
||||
.description = fmt("Append to the `%s` setting.", name),
|
||||
.category = category,
|
||||
.labels = {"value"},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue