diff --git a/src/uu/expand/expand.md b/src/uu/expand/expand.md new file mode 100644 index 000000000..df7294c30 --- /dev/null +++ b/src/uu/expand/expand.md @@ -0,0 +1,8 @@ +# expand + +``` +expand [OPTION]... [FILE]... +``` + +Convert tabs in each `FILE` to spaces, writing to standard output. +With no `FILE`, or when `FILE` is `-`, read standard input. diff --git a/src/uu/expand/src/expand.rs b/src/uu/expand/src/expand.rs index 7976a0a97..40928aeaf 100644 --- a/src/uu/expand/src/expand.rs +++ b/src/uu/expand/src/expand.rs @@ -19,11 +19,10 @@ use std::str::from_utf8; use unicode_width::UnicodeWidthChar; use uucore::display::Quotable; use uucore::error::{FromIo, UError, UResult}; -use uucore::{crash, format_usage}; +use uucore::{crash, format_usage, help_about, help_usage}; -static ABOUT: &str = "Convert tabs in each FILE to spaces, writing to standard output. - With no FILE, or when FILE is -, read standard input."; -const USAGE: &str = "{} [OPTION]... [FILE]..."; +const ABOUT: &str = help_about!("expand.md"); +const USAGE: &str = help_usage!("expand.md"); pub mod options { pub static TABS: &str = "tabs";