From 440feaf74a8301f96fde18510a28cd4fdbc28949 Mon Sep 17 00:00:00 2001 From: Reilly Wood <26268125+rgwood@users.noreply.github.com> Date: Wed, 21 Dec 2022 14:30:53 -0800 Subject: [PATCH] Clarify `--stdin` flag (#7541) Just change the description of the `--stdin` flag as shown in `nu --help`: "redirect the stdin" -> "redirect standard input to a command (with `-c`) or a script file" The old description was a little too terse and I had to look in the code to see what it was doing. --- src/main.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 470d51a097..b3d04ea154 100644 --- a/src/main.rs +++ b/src/main.rs @@ -648,7 +648,11 @@ impl Command for Nu { fn signature(&self) -> Signature { let signature = Signature::build("nu") .usage("The nushell language and shell.") - .switch("stdin", "redirect the stdin", None) + .switch( + "stdin", + "redirect standard input to a command (with `-c`) or a script file", + None, + ) .switch("login", "start as a login shell", Some('l')) .switch("interactive", "start as an interactive shell", Some('i')) .switch("version", "print the version", Some('v'))