diff options
author | lunaphied <lunaphied@lunaphied.me> | 2024-03-25 14:13:44 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@lix> | 2024-03-25 14:13:44 +0000 |
commit | d3d7489571baeb651d3843dba3b638621694c174 (patch) | |
tree | 2c480e6aae1704384ad66f1b5bd8dd644e7e1e08 /doc | |
parent | 5a1c35f90756508617b4d694d49c4ac3defff1c5 (diff) | |
parent | 185ecf1f45e6bf2198fe9ca3bb7ad175f412a014 (diff) |
Merge "Improve new CLI UX by supporting short `-E` flag for `--expr`" into main
Diffstat (limited to 'doc')
-rw-r--r-- | doc/manual/rl-next/short-expr-flag.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/manual/rl-next/short-expr-flag.md b/doc/manual/rl-next/short-expr-flag.md new file mode 100644 index 000000000..a02c944bd --- /dev/null +++ b/doc/manual/rl-next/short-expr-flag.md @@ -0,0 +1,14 @@ +--- +synopsis: reintroduce shortened `-E` form for `--expr` to new CLI +# prs: cl 605 +--- + +In the past, it was possible to supply a shorter `-E` flag instead of fully +specifying `--expr` every time you wished to provide an expression that would +be evaluated to produce the given command's input. This was retained for the +`--file` flag when the new CLI utilities were written with `-f`, but `-E` was +dropped. + +We now restore the `-E` short form for better UX. This is most useful for +`nix eval` but most any command that takes an Installable argument should benefit +from it as well. |