diff --git a/src/uu/paste/paste.md b/src/uu/paste/paste.md new file mode 100644 index 000000000..741605888 --- /dev/null +++ b/src/uu/paste/paste.md @@ -0,0 +1,8 @@ +# paste + +``` +paste [OPTIONS] [FILE]... +``` + +Write lines consisting of the sequentially corresponding lines from each +`FILE`, separated by `TAB`s, to standard output. diff --git a/src/uu/paste/src/paste.rs b/src/uu/paste/src/paste.rs index 3635ae967..d7a4d325c 100644 --- a/src/uu/paste/src/paste.rs +++ b/src/uu/paste/src/paste.rs @@ -13,9 +13,10 @@ use std::fs::File; use std::io::{stdin, stdout, BufRead, BufReader, Read, Write}; use std::path::Path; use uucore::error::{FromIo, UResult}; +use uucore::{format_usage, help_about, help_usage}; -static ABOUT: &str = "Write lines consisting of the sequentially corresponding lines from each -FILE, separated by TABs, to standard output."; +const ABOUT: &str = help_about!("paste.md"); +const USAGE: &str = help_usage!("paste.md"); mod options { pub const DELIMITER: &str = "delimiters"; @@ -76,6 +77,7 @@ pub fn uu_app() -> Command { Command::new(uucore::util_name()) .version(crate_version!()) .about(ABOUT) + .override_usage(format_usage(USAGE)) .infer_long_args(true) .arg( Arg::new(options::SERIAL)