From 101fd9ad153674a222ecccd3410503d8b3877981 Mon Sep 17 00:00:00 2001 From: Eman Resu <78693624+quatquatt@users.noreply.github.com> Date: Sun, 21 Jun 2026 16:06:53 -0400 Subject: [PATCH] lib.cli.toCommandLine: share let variables for a single optionFormat --- lib/cli.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cli.nix b/lib/cli.nix index 37f9e270a313..94e54a672a29 100644 --- a/lib/cli.nix +++ b/lib/cli.nix @@ -421,7 +421,7 @@ - `lib.cli.toCommandLineShellGNU` */ toCommandLine = - optionFormat: attrs: + optionFormat: let handlePair = k: v: @@ -458,5 +458,5 @@ arg ]; in - builtins.concatLists (lib.mapAttrsToList handlePair attrs); + attrs: builtins.concatLists (lib.mapAttrsToList handlePair attrs); }