Add long options for generators and math (#10752)

This commit is contained in:
Hofer-Julian
2023-10-19 18:17:42 +02:00
committed by GitHub
parent 5f2089a15b
commit 54bc662e0e
10 changed files with 16 additions and 16 deletions

View File

@ -71,7 +71,7 @@ impl Command for SubCommand {
},
Example {
description: "Apply the round function with precision specified",
example: "[1.555 2.333 -3.111] | math round -p 2",
example: "[1.555 2.333 -3.111] | math round --precision 2",
result: Some(Value::list(
vec![
Value::test_float(1.56),
@ -83,7 +83,7 @@ impl Command for SubCommand {
},
Example {
description: "Apply negative precision to a list of numbers",
example: "[123, 123.3, -123.4] | math round -p -1",
example: "[123, 123.3, -123.4] | math round --precision -1",
result: Some(Value::list(
vec![
Value::test_int(120),

View File

@ -58,7 +58,7 @@ impl Command for SubCommand {
},
Example {
description: "Compute the sample standard deviation of a list of numbers",
example: "[1 2 3 4 5] | math stddev -s",
example: "[1 2 3 4 5] | math stddev --sample",
result: Some(Value::test_float(1.5811388300841898)),
},
]

View File

@ -50,7 +50,7 @@ impl Command for SubCommand {
},
Example {
description: "Get the sample variance of a list of numbers",
example: "[1 2 3 4 5] | math variance -s",
example: "[1 2 3 4 5] | math variance --sample",
result: Some(Value::test_float(2.5)),
},
]