Skip to content

Commit

Permalink
Mention print in the echo help text (nushell#12436)
Browse files Browse the repository at this point in the history
# Description
Edits the `echo` help text to mention the `print` command.

---------

Co-authored-by: Darren Schroeder <343840+fdncred@users.noreply.github.com>
  • Loading branch information
IanManske and fdncred authored Apr 7, 2024
1 parent 6b4cbe7 commit 67c8b0d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/nu-cmd-lang/src/core_commands/echo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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."#
}

Expand Down

0 comments on commit 67c8b0d

Please sign in to comment.