Tweak --no/use-registries doc strings

This commit is contained in:
Eelco Dolstra 2021-07-21 14:27:37 +02:00
parent fc248cf59e
commit 3bb8667a17
2 changed files with 4 additions and 3 deletions

View file

@ -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'");
}}
});

View file

@ -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."};
};