Replies: 1 comment 5 replies
-
You need to have your bindings in a record, not in a let-binding. Basically let-binding are just aliases and aren't overridable. Record fields are. So something like:
$ nickel export foo.ncl --field output -- a=1 b=2
3 How it works is that the CLI will evaluate that to something equivalent to
This is unfortunately not yet possible, but something we really want: #747. |
Beta Was this translation helpful? Give feedback.
-
Supposing I have something like this:
for use with
nickel export ... --field output1
.How do I add a CLI-accessible knob that affects something at the top (e.g.
a
binding), so that it can be used asnickel export ... --field output1 -- a=1234
?Also how do I reuse
let
binding for the final output record, to avoid hacks likethe_thing: the_thing_
?Beta Was this translation helpful? Give feedback.
All reactions