diff --git a/src/uu/fmt/fmt.md b/src/uu/fmt/fmt.md new file mode 100644 index 000000000..5cf4fa6e6 --- /dev/null +++ b/src/uu/fmt/fmt.md @@ -0,0 +1,7 @@ +# fmt + +``` +fmt [OPTION]... [FILE]... +``` + +Reformat paragraphs from input files (or stdin) to stdout. diff --git a/src/uu/fmt/src/fmt.rs b/src/uu/fmt/src/fmt.rs index a97f64945..bd03b5497 100644 --- a/src/uu/fmt/src/fmt.rs +++ b/src/uu/fmt/src/fmt.rs @@ -14,7 +14,7 @@ use std::io::{stdin, stdout, Write}; use std::io::{BufReader, BufWriter, Read}; use uucore::display::Quotable; use uucore::error::{FromIo, UResult, USimpleError}; -use uucore::{format_usage, show_warning}; +use uucore::{format_usage, help_about, help_usage, show_warning}; use self::linebreak::break_lines; use self::parasplit::ParagraphStream; @@ -22,8 +22,8 @@ use self::parasplit::ParagraphStream; mod linebreak; mod parasplit; -static ABOUT: &str = "Reformat paragraphs from input files (or stdin) to stdout."; -const USAGE: &str = "{} [OPTION]... [FILE]..."; +static ABOUT: &str = help_about!("fmt.md"); +const USAGE: &str = help_usage!("fmt.md"); static MAX_WIDTH: usize = 2500; static OPT_CROWN_MARGIN: &str = "crown-margin";