mirror of
https://github.com/nushell/nushell.git
synced 2025-04-24 05:08:29 +02:00
Add some cross-references to usage texts (#2417)
This commit is contained in:
parent
c563b7862e
commit
08d1be79fc
@ -22,12 +22,12 @@ impl WholeStreamCommand for Drop {
|
|||||||
Signature::build("drop").optional(
|
Signature::build("drop").optional(
|
||||||
"rows",
|
"rows",
|
||||||
SyntaxShape::Number,
|
SyntaxShape::Number,
|
||||||
"starting from the back, the number of rows to drop",
|
"starting from the back, the number of rows to remove",
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn usage(&self) -> &str {
|
fn usage(&self) -> &str {
|
||||||
"Drop the last number of rows."
|
"Remove the last number of rows. If you want to remove columns, try 'reject'."
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn run(
|
async fn run(
|
||||||
|
@ -23,7 +23,7 @@ impl WholeStreamCommand for Reject {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn usage(&self) -> &str {
|
fn usage(&self) -> &str {
|
||||||
"Remove the given columns from the table."
|
"Remove the given columns from the table. If you want to remove rows, try 'drop'."
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn run(
|
async fn run(
|
||||||
|
Loading…
Reference in New Issue
Block a user