diff --git a/src/uu/tac/src/tac.rs b/src/uu/tac/src/tac.rs index b0d79e6da..aef9932a2 100644 --- a/src/uu/tac/src/tac.rs +++ b/src/uu/tac/src/tac.rs @@ -19,12 +19,12 @@ use std::{ use uucore::display::Quotable; use uucore::error::UError; use uucore::error::UResult; -use uucore::{format_usage, show}; +use uucore::{format_usage, help_about, help_usage, show}; use crate::error::TacError; -static USAGE: &str = "{} [OPTION]... [FILE]..."; -static ABOUT: &str = "Write each file to standard output, last line first."; +static USAGE: &str = help_usage!("tac.md"); +static ABOUT: &str = help_about!("tac.md"); mod options { pub static BEFORE: &str = "before"; diff --git a/src/uu/tac/tac.md b/src/uu/tac/tac.md new file mode 100644 index 000000000..6787b3f49 --- /dev/null +++ b/src/uu/tac/tac.md @@ -0,0 +1,7 @@ +# tac + +``` +tac [OPTION]... [FILE]... +``` + +Write each file to standard output, last line first.