Rename renderOptions
to encodeGNUCommandLine
... as suggested by @edolstra
This commit is contained in:
parent
183a99734f
commit
8c6a05c8c9
@ -6,10 +6,10 @@
|
|||||||
boilerplate related to command-line construction for simple use cases.
|
boilerplate related to command-line construction for simple use cases.
|
||||||
|
|
||||||
Example:
|
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"
|
=> " --bar '1' --foo 'A' --qux -v"
|
||||||
*/
|
*/
|
||||||
renderOptions =
|
encodeGNUCommandLine =
|
||||||
options:
|
options:
|
||||||
let
|
let
|
||||||
render = key: value:
|
render = key: value:
|
||||||
|
@ -121,7 +121,7 @@ let
|
|||||||
isOptionType mkOptionType;
|
isOptionType mkOptionType;
|
||||||
inherit (asserts)
|
inherit (asserts)
|
||||||
assertMsg assertOneOf;
|
assertMsg assertOneOf;
|
||||||
inherit (cli) renderOptions;
|
inherit (cli) encodeGNUCommandLine;
|
||||||
inherit (debug) addErrorContextToAttrs traceIf traceVal traceValFn
|
inherit (debug) addErrorContextToAttrs traceIf traceVal traceValFn
|
||||||
traceXMLVal traceXMLValMarked traceSeq traceSeqN traceValSeq
|
traceXMLVal traceXMLValMarked traceSeq traceSeqN traceValSeq
|
||||||
traceValSeqFn traceValSeqN traceValSeqNFn traceShowVal
|
traceValSeqFn traceValSeqN traceValSeqNFn traceShowVal
|
||||||
|
@ -443,7 +443,7 @@ runTests {
|
|||||||
|
|
||||||
testRenderOptions = {
|
testRenderOptions = {
|
||||||
expr =
|
expr =
|
||||||
renderOptions
|
encodeGNUCommandLine
|
||||||
{ foo = "A";
|
{ foo = "A";
|
||||||
|
|
||||||
bar = 1;
|
bar = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user