mirror of
https://github.com/nushell/nushell.git
synced 2024-11-07 17:14:23 +01:00
Mention print
in the echo
help text (#12436)
# Description Edits the `echo` help text to mention the `print` command. --------- Co-authored-by: Darren Schroeder <343840+fdncred@users.noreply.github.com>
This commit is contained in:
parent
6b4cbe7a98
commit
67c8b0db69
@ -20,8 +20,10 @@ impl Command for Echo {
|
||||
}
|
||||
|
||||
fn extra_usage(&self) -> &str {
|
||||
r#"When given no arguments, it returns an empty string. When given one argument,
|
||||
it returns it. Otherwise, it returns a list of the arguments. There is usually
|
||||
r#"Unlike `print`, which prints unstructured text to stdout, `echo` is like an
|
||||
identity function and simply returns its arguments. When given no arguments,
|
||||
it returns an empty string. When given one argument, it returns it as a
|
||||
nushell value. Otherwise, it returns a list of the arguments. There is usually
|
||||
little reason to use this over just writing the values as-is."#
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user