mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 20:07:42 +02:00
Add long options for generators and math (#10752)
This commit is contained in:
@ -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)),
|
||||
},
|
||||
]
|
||||
|
@ -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)),
|
||||
},
|
||||
]
|
||||
|
@ -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)),
|
||||
},
|
||||
]
|
||||
|
@ -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),
|
||||
|
@ -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),
|
||||
|
Reference in New Issue
Block a user