diff --git a/src/uu/timeout/src/timeout.rs b/src/uu/timeout/src/timeout.rs index 153beea3d66..531f29e8243 100644 --- a/src/uu/timeout/src/timeout.rs +++ b/src/uu/timeout/src/timeout.rs @@ -22,12 +22,12 @@ use uucore::process::ChildExt; use uucore::signals::enable_pipe_errors; use uucore::{ - format_usage, show_error, + format_usage, help_about, help_usage, show_error, signals::{signal_by_name_or_value, signal_name_by_value}, }; -static ABOUT: &str = "Start COMMAND, and kill it if still running after DURATION."; -const USAGE: &str = "{} [OPTION] DURATION COMMAND..."; +const ABOUT: &str = help_about!("timeout.md"); +const USAGE: &str = help_usage!("timeout.md"); pub mod options { pub static FOREGROUND: &str = "foreground"; diff --git a/src/uu/timeout/timeout.md b/src/uu/timeout/timeout.md new file mode 100644 index 00000000000..f992ab32772 --- /dev/null +++ b/src/uu/timeout/timeout.md @@ -0,0 +1,7 @@ +# timeout + +``` +timeout [OPTION] DURATION COMMAND... +``` + +Start `COMMAND`, and kill it if still running after `DURATION`.