2024-03-22 03:48:34 +00:00
|
|
|
---
|
|
|
|
synopsis: reintroduce shortened `-E` form for `--expr` to new CLI
|
2024-03-26 17:32:25 +00:00
|
|
|
cls: 605
|
2024-05-15 02:14:58 +00:00
|
|
|
credits: Lunaphied
|
|
|
|
category: Improvements
|
2024-03-22 03:48:34 +00:00
|
|
|
---
|
|
|
|
|
2024-05-15 02:14:58 +00:00
|
|
|
In the old CLI, it was possible to supply a shorter `-E` flag instead of fully
|
2024-03-22 03:48:34 +00:00
|
|
|
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.
|