diff --git a/src/uu/more/more.md b/src/uu/more/more.md new file mode 100644 index 00000000000..cb626060ec5 --- /dev/null +++ b/src/uu/more/more.md @@ -0,0 +1,8 @@ +# more + +``` +more [OPTIONS] ... +``` + +Display the contents of a text file + diff --git a/src/uu/more/src/more.rs b/src/uu/more/src/more.rs index 31b1640a258..6cf9df1ab12 100644 --- a/src/uu/more/src/more.rs +++ b/src/uu/more/src/more.rs @@ -28,7 +28,10 @@ use unicode_segmentation::UnicodeSegmentation; use unicode_width::UnicodeWidthStr; use uucore::display::Quotable; use uucore::error::{UResult, USimpleError, UUsageError}; +use uucore::{format_usage, help_about, help_usage}; +const ABOUT: &str = help_about!("more.md"); +const USAGE: &str = help_usage!("more.md"); const BELL: &str = "\x07"; pub mod options { @@ -97,7 +100,8 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> { pub fn uu_app() -> Command { Command::new(uucore::util_name()) - .about("A file perusal filter for CRT viewing.") + .about(ABOUT) + .override_usage(format_usage(USAGE)) .version(crate_version!()) .infer_long_args(true) .arg(