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

@ -60,7 +60,7 @@ impl Command for SubCommand {
},
Example {
description: "Get the arccosine of -1 in degrees",
example: "-1 | math arccos -d",
example: "-1 | math arccos --degrees",
result: Some(Value::test_float(180.0)),
},
]

View File

@ -61,7 +61,7 @@ impl Command for SubCommand {
},
Example {
description: "Get the arcsine of 1 in degrees",
example: "1 | math arcsin -d",
example: "1 | math arcsin --degrees",
result: Some(Value::test_float(90.0)),
},
]

View File

@ -61,7 +61,7 @@ impl Command for SubCommand {
},
Example {
description: "Get the arctangent of -1 in degrees",
example: "-1 | math arctan -d",
example: "-1 | math arctan --degrees",
result: Some(Value::test_float(-45.0)),
},
]

View File

@ -59,7 +59,7 @@ impl Command for SubCommand {
},
Example {
description: "Apply the cosine to a list of angles in degrees",
example: "[0 90 180 270 360] | math cos -d",
example: "[0 90 180 270 360] | math cos --degrees",
result: Some(Value::list(
vec![
Value::test_float(1f64),

View File

@ -59,7 +59,7 @@ impl Command for SubCommand {
},
Example {
description: "Apply the tangent to a list of angles in degrees",
example: "[-45 0 45] | math tan -d",
example: "[-45 0 45] | math tan --degrees",
result: Some(Value::list(
vec![
Value::test_float(-1f64),