aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-07-21 14:27:37 +0200
committerEelco Dolstra <edolstra@gmail.com>2021-07-21 14:27:37 +0200
commit3bb8667a1758ad10b5f8621f7e187c38c9c860c0 (patch)
treebbd9b69ecbbadfca4d73f6f3f0c3dd4ce19bd664 /src
parentfc248cf59ebfa354d7266f7ecc3c3cc258592816 (diff)
Tweak --no/use-registries doc strings
Diffstat (limited to 'src')
-rw-r--r--src/libcmd/installables.cc5
-rw-r--r--src/libstore/globals.hh2
2 files changed, 4 insertions, 3 deletions
diff --git a/src/libcmd/installables.cc b/src/libcmd/installables.cc
index 0ffb97a5e..95327f958 100644
--- a/src/libcmd/installables.cc
+++ b/src/libcmd/installables.cc
@@ -58,11 +58,12 @@ MixFlakeOptions::MixFlakeOptions()
addFlag({
.longName = "no-registries",
- .description = "Don't allow lookups in the flake registries.",
+ .description =
+ "Don't allow lookups in the flake registries. This option is deprecated; use `--no-use-registries`.",
.category = category,
.handler = {[&]() {
lockFlags.useRegistries = false;
- warn("--no-registries is deprecated; use --no-use-registries (a.k.a --option use-registries false)");
+ warn("'--no-registries' is deprecated; use '--no-use-registries'");
}}
});
diff --git a/src/libstore/globals.hh b/src/libstore/globals.hh
index a52d20376..8784d5faf 100644
--- a/src/libstore/globals.hh
+++ b/src/libstore/globals.hh
@@ -958,7 +958,7 @@ public:
)"};
Setting<bool> useRegistries{this, true, "use-registries",
- "Whether to use flake registries for reference resolution"};
+ "Whether to use flake registries to resolve flake references."};
};