diff --git a/src/uu/printenv/printenv.md b/src/uu/printenv/printenv.md new file mode 100644 index 000000000..929da7947 --- /dev/null +++ b/src/uu/printenv/printenv.md @@ -0,0 +1,7 @@ +# printenv + +``` +printenv [VARIABLE]... [OPTION]... +``` + +Display the values of the specified environment VARIABLE(s), or (with no VARIABLE) display name and value pairs for them all. diff --git a/src/uu/printenv/src/printenv.rs b/src/uu/printenv/src/printenv.rs index dd58f4ee1..beeb7285b 100644 --- a/src/uu/printenv/src/printenv.rs +++ b/src/uu/printenv/src/printenv.rs @@ -9,10 +9,10 @@ use clap::{crate_version, Arg, ArgAction, Command}; use std::env; -use uucore::{error::UResult, format_usage}; +use uucore::{error::UResult, format_usage, help_about, help_usage}; -static ABOUT: &str = "Display the values of the specified environment VARIABLE(s), or (with no VARIABLE) display name and value pairs for them all."; -const USAGE: &str = "{} [VARIABLE]... [OPTION]..."; +const ABOUT: &str = help_about!("printenv.md"); +const USAGE: &str = help_usage!("printenv.md"); static OPT_NULL: &str = "null";