nameless 0.15.2

Portable everything-is-a-URL
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! A simple program using `kommand` that sleeps for a given duration, which
//! may be given in any format recognized by [`humantime::parse_duration`].
//!
//! [`humantime::parse_duration`]: https://docs.rs/humantime/latest/humantime/fn.parse_duration.html

use humantime::Duration;

/// # Arguments
///
/// * `duration` - Time to sleep
#[kommand::main]
fn main(duration: Duration) {
    std::thread::sleep(duration.into());
}