From 5d3910330d91f89c190c2bd5fb9c93cc2e8989d1 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: Show message about `--update-input` being replaced by `nix flake update` Fixes: https://git.lix.systems/lix-project/lix/issues/283 Change-Id: I6ee23874cb09f51d788521273076a25ba8764859 --- src/nix/flake.cc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') 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"); } -- cgit v1.2.3