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.
This commit is contained in:
Reilly Wood 2022-12-21 14:30:53 -08:00 committed by GitHub
parent 22c50185b5
commit 440feaf74a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'))