From 551fa55939458d06153965c7c9568d6536c1ad19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikodem=20Rabuli=C5=84ski?= Date: Fri, 17 May 2024 21:54:14 +0200 Subject: [PATCH] Show message about `--update-input` being replaced by `nix flake update` Change-Id: I6ee23874cb09f51d788521273076a25ba8764859 --- src/nix/flake.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/nix/flake.cc b/src/nix/flake.cc index 1648c56d0..d24f746f8 100644 --- a/src/nix/flake.cc +++ b/src/nix/flake.cc @@ -134,6 +134,15 @@ struct CmdFlakeLock : FlakeCommand CmdFlakeLock() { + addFlag({ + .longName="update-input", + .description="Replaced with `nix flake update input...`", + .labels={"input-path"}, + .handler={[&](std::string inputToUpdate){ + throw UsageError("`nix flake lock --update-input %1%` has been replaced by `nix flake update %1%`", inputToUpdate); + }} + }); + /* Remove flags that don't make sense. */ removeFlag("no-write-lock-file"); }