aboutsummaryrefslogtreecommitdiff
path: root/doc/manual/rl-next/short-expr-flag.md
blob: 61ceff24b4ede78597913a72bfafa389a2df86e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
---
synopsis: reintroduce shortened `-E` form for `--expr` to new CLI
cls: 605
credits: Lunaphied
category: Improvements
---

In the old CLI, 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.