forked from extern/nushell
Fix command descriptions+examples (#5129)
* Fix exit usage * Move dfr as-date* format examples to extra_usage * Update command usage and examples * More docs on `str trim` Co-authored-by: sholderbach <sholderbach@users.noreply.github.com>
This commit is contained in:
@ -59,7 +59,11 @@ impl Command for SubCommand {
|
||||
.switch("format", "trims spaces replacing multiple characters with singles in the middle (default: whitespace)", Some('f'))
|
||||
}
|
||||
fn usage(&self) -> &str {
|
||||
"trims text"
|
||||
"Trim whitespace or specific character"
|
||||
}
|
||||
|
||||
fn search_terms(&self) -> Vec<&str> {
|
||||
vec!["whitespace", "strip", "lstrip", "rstrip"]
|
||||
}
|
||||
|
||||
fn run(
|
||||
|
Reference in New Issue
Block a user