lib.cli.toCommandLine: share let variables for a single optionFormat

This commit is contained in:
Eman Resu
2026-06-21 16:06:53 -04:00
parent c0818c94ff
commit 101fd9ad15
+2 -2
View File
@@ -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);
}