mirror of
https://github.com/nushell/nushell.git
synced 2025-04-02 20:27:11 +02:00
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:
parent
22c50185b5
commit
440feaf74a
@ -648,7 +648,11 @@ impl Command for Nu {
|
|||||||
fn signature(&self) -> Signature {
|
fn signature(&self) -> Signature {
|
||||||
let signature = Signature::build("nu")
|
let signature = Signature::build("nu")
|
||||||
.usage("The nushell language and shell.")
|
.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("login", "start as a login shell", Some('l'))
|
||||||
.switch("interactive", "start as an interactive shell", Some('i'))
|
.switch("interactive", "start as an interactive shell", Some('i'))
|
||||||
.switch("version", "print the version", Some('v'))
|
.switch("version", "print the version", Some('v'))
|
||||||
|
Loading…
Reference in New Issue
Block a user