diff --git a/src/uu/install/install.md b/src/uu/install/install.md new file mode 100644 index 000000000..ac6a70f42 --- /dev/null +++ b/src/uu/install/install.md @@ -0,0 +1,8 @@ +# install + +``` +install [OPTION]... [FILE]... +``` + +Copy SOURCE to DEST or multiple SOURCE(s) to the existing +DIRECTORY, while setting permission modes and owner/group diff --git a/src/uu/install/src/install.rs b/src/uu/install/src/install.rs index c4c8f095b..98fdb47d6 100644 --- a/src/uu/install/src/install.rs +++ b/src/uu/install/src/install.rs @@ -19,7 +19,7 @@ use uucore::error::{FromIo, UError, UIoError, UResult, UUsageError}; use uucore::fs::dir_strip_dot_for_creation; use uucore::mode::get_umask; use uucore::perms::{wrap_chown, Verbosity, VerbosityLevel}; -use uucore::{format_usage, show, show_error, show_if_err, uio_error}; +use uucore::{format_usage, help_about, help_usage, show, show_error, show_if_err, uio_error}; use libc::{getegid, geteuid}; use std::error::Error; @@ -144,9 +144,8 @@ impl Behavior { } } -static ABOUT: &str = "Copy SOURCE to DEST or multiple SOURCE(s) to the existing - DIRECTORY, while setting permission modes and owner/group"; -const USAGE: &str = "{} [OPTION]... [FILE]..."; +const ABOUT: &str = help_about!("install.md"); +const USAGE: &str = help_usage!("install.md"); static OPT_COMPARE: &str = "compare"; static OPT_DIRECTORY: &str = "directory";