From 3bb8667a1758ad10b5f8621f7e187c38c9c860c0 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 21 Jul 2021 14:27:37 +0200 Subject: [PATCH] Tweak --no/use-registries doc strings --- src/libcmd/installables.cc | 5 +++-- src/libstore/globals.hh | 2 +- 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 useRegistries{this, true, "use-registries", - "Whether to use flake registries for reference resolution"}; + "Whether to use flake registries to resolve flake references."}; };