aboutsummaryrefslogtreecommitdiff
path: root/src/nix/command.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-01-25 19:03:13 +0100
committerEelco Dolstra <edolstra@gmail.com>2021-01-25 19:03:13 +0100
commit36c4d6f59247826dde32ad2e6b5a9471a9a1c911 (patch)
treec07928e4554aaf6622cd1df996fd4fdc1c368f20 /src/nix/command.cc
parent807d963ee8d23e88f09e28365b045d322530c5aa (diff)
Group common options
Diffstat (limited to 'src/nix/command.cc')
-rw-r--r--src/nix/command.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/nix/command.cc b/src/nix/command.cc
index 20eeefe91..614dee788 100644
--- a/src/nix/command.cc
+++ b/src/nix/command.cc
@@ -61,6 +61,7 @@ StorePathsCommand::StorePathsCommand(bool recursive)
addFlag({
.longName = "no-recursive",
.description = "Apply operation to specified paths only.",
+ .category = installablesCategory,
.handler = {&this->recursive, false},
});
else
@@ -68,10 +69,16 @@ StorePathsCommand::StorePathsCommand(bool recursive)
.longName = "recursive",
.shortName = 'r',
.description = "Apply operation to closure of the specified paths.",
+ .category = installablesCategory,
.handler = {&this->recursive, true},
});
- mkFlag(0, "all", "Apply the operation to every store path.", &all);
+ addFlag({
+ .longName = "all",
+ .description = "Apply the operation to every store path.",
+ .category = installablesCategory,
+ .handler = {&all, true},
+ });
}
void StorePathsCommand::run(ref<Store> store)