diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2022-10-12 15:09:00 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2022-10-12 15:09:17 +0200 |
commit | eba610956b088e0d881c44189ef3e0d613bbf922 (patch) | |
tree | 28fc08cfab163dea4ca54c86154ecdd2b23edcba /src/nix | |
parent | ae2d330455996f5c1099b5accf36ad348b3d5e9b (diff) |
Move some options into a misc category
This unclutters the per-command options a bit by moving out some
global options.
Diffstat (limited to 'src/nix')
-rw-r--r-- | src/nix/main.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nix/main.cc b/src/nix/main.cc index 006911216..d78312944 100644 --- a/src/nix/main.cc +++ b/src/nix/main.cc @@ -74,6 +74,7 @@ struct NixArgs : virtual MultiCommand, virtual MixCommonArgs addFlag({ .longName = "help", .description = "Show usage information.", + .category = miscCategory, .handler = {[&]() { throw HelpRequested(); }}, }); @@ -88,6 +89,7 @@ struct NixArgs : virtual MultiCommand, virtual MixCommonArgs addFlag({ .longName = "version", .description = "Show version information.", + .category = miscCategory, .handler = {[&]() { showVersion = true; }}, }); @@ -95,12 +97,14 @@ struct NixArgs : virtual MultiCommand, virtual MixCommonArgs .longName = "offline", .aliases = {"no-net"}, // FIXME: remove .description = "Disable substituters and consider all previously downloaded files up-to-date.", + .category = miscCategory, .handler = {[&]() { useNet = false; }}, }); addFlag({ .longName = "refresh", .description = "Consider all previously downloaded files out-of-date.", + .category = miscCategory, .handler = {[&]() { refresh = true; }}, }); } |