From 185ecf1f45e6bf2198fe9ca3bb7ad175f412a014 Mon Sep 17 00:00:00 2001 From: Lunaphied Date: Thu, 21 Mar 2024 21:48:34 -0600 Subject: Improve new CLI UX by supporting short `-E` flag for `--expr` Change-Id: I55881c846da8416a92a14deedfa5bbbf09a122fb --- doc/manual/rl-next/short-expr-flag.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 doc/manual/rl-next/short-expr-flag.md (limited to 'doc') 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. -- cgit v1.2.3