mirror of
https://github.com/nushell/nushell.git
synced 2025-05-18 17:00:46 +02:00
Improve sleep
example using multiple durations (#14520)
It is to cheat our parser and not to repeat yourself.
This commit is contained in:
parent
d97562f6e8
commit
f51828d049
@ -70,8 +70,8 @@ impl Command for Sleep {
|
||||
result: Some(Value::nothing(Span::test_data())),
|
||||
},
|
||||
Example {
|
||||
description: "Sleep for 3sec",
|
||||
example: "sleep 1sec 1sec 1sec",
|
||||
description: "Use multiple arguments to write a duration with multiple units, which is unsupported by duration literals",
|
||||
example: "sleep 1min 30sec",
|
||||
result: None,
|
||||
},
|
||||
Example {
|
||||
|
Loading…
Reference in New Issue
Block a user