diff --git a/src/uu/pinky/pinky.md b/src/uu/pinky/pinky.md new file mode 100644 index 000000000..965ae4cd0 --- /dev/null +++ b/src/uu/pinky/pinky.md @@ -0,0 +1,7 @@ +# pinky + +``` +pinky [OPTION]... [USER]... +``` + +Displays brief user information on Unix-based systems diff --git a/src/uu/pinky/src/pinky.rs b/src/uu/pinky/src/pinky.rs index 18f72638b..172a9e138 100644 --- a/src/uu/pinky/src/pinky.rs +++ b/src/uu/pinky/src/pinky.rs @@ -20,10 +20,10 @@ use std::os::unix::fs::MetadataExt; use clap::{crate_version, Arg, ArgAction, Command}; use std::path::PathBuf; -use uucore::format_usage; +use uucore::{format_usage, help_about, help_usage}; -static ABOUT: &str = "Lightweight finger"; -const USAGE: &str = "{} [OPTION]... [USER]..."; +const ABOUT: &str = help_about!("pinky.md"); +const USAGE: &str = help_usage!("pinky.md"); mod options { pub const LONG_FORMAT: &str = "long_format";