Add long options for filters (#10641)

This commit is contained in:
Hofer-Julian
2023-10-08 13:12:46 +02:00
committed by GitHub
parent bcf3537395
commit ff6c0fcb81
22 changed files with 47 additions and 47 deletions

View File

@ -128,7 +128,7 @@ impl Command for SubCommand {
},
Example {
description: "Split a list of chars into lists based on multiple characters",
example: r"[a, b, c, d, a, e, f, g] | split list -r '(b|e)'",
example: r"[a, b, c, d, a, e, f, g] | split list --regex '(b|e)'",
result: Some(Value::list(
vec![
Value::list(vec![Value::test_string("a")], Span::test_data()),

View File

@ -94,7 +94,7 @@ impl Command for SubCommand {
Example {
description:
"A real-world example of splitting words",
example: "http get https://www.gutenberg.org/files/11/11-0.txt | str downcase | split words -l 2 | uniq -c | sort-by count --reverse | first 10",
example: "http get https://www.gutenberg.org/files/11/11-0.txt | str downcase | split words -l 2 | uniq --count | sort-by count --reverse | first 10",
result: None,
},
]