summaryrefslogtreecommitdiffstats
path: root/lib/cli.nix
diff options
context:
space:
mode:
authorGabriel Gonzalez <Gabriel439@gmail.com>2019-12-13 18:19:24 -0800
committerGabriel Gonzalez <Gabriel439@gmail.com>2019-12-13 18:19:24 -0800
commit8c6a05c8c99819dbd85d555cb50596637d57df44 (patch)
tree2e933aad0b7ccfd172c1ae91bc723c92ff335b3f /lib/cli.nix
parent183a99734f666b6bd508f4c81e887dbc746fec69 (diff)
Rename `renderOptions` to `encodeGNUCommandLine`
... as suggested by @edolstra
Diffstat (limited to 'lib/cli.nix')
-rw-r--r--lib/cli.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/cli.nix b/lib/cli.nix
index d794778b21a4..23fab8ec9703 100644
--- a/lib/cli.nix
+++ b/lib/cli.nix
@@ -6,10 +6,10 @@
boilerplate related to command-line construction for simple use cases.
Example:
- renderOptions { foo = "A"; bar = 1; baz = null; qux = true; v = true; }
+ encodeGNUCommandLine { foo = "A"; bar = 1; baz = null; qux = true; v = true; }
=> " --bar '1' --foo 'A' --qux -v"
*/
- renderOptions =
+ encodeGNUCommandLine =
options:
let
render = key: value: