diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-10-31 23:27:54 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-10-31 23:27:54 +0100 |
commit | 5fb260f1fcd302cb529bec52520345c77bbbadf8 (patch) | |
tree | f7303404dca1012d27241fe4fdb1207ea013f486 /contrib | |
parent | 67d7d0f263c1c20fa1e29b755f4f74cda64d4a42 (diff) |
main: allow prefixing -e and -E options
By specifying a name, followed by an equal sign before the actual option
value, the corresponding JSON data is stored as global variable with the
given name, instead of turning each object key into a variable itself.
For example while `utpl -e '{ "foo": true, "bar": false }' ...` will set
two variables `foo` and `bar`, the alternative syntax
`utpl -e 'baz={ "foo": true, "bar": false }' ...` will declare a single
variable `baz` holding the object `{ "foo": true, "bar": false }`.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions