diff --git a/src/uu/realpath/realpath.md b/src/uu/realpath/realpath.md new file mode 100644 index 000000000..69fb39407 --- /dev/null +++ b/src/uu/realpath/realpath.md @@ -0,0 +1,7 @@ +# realpath + +``` +realpath [OPTION]... FILE... +``` + +Print the resolved path \ No newline at end of file diff --git a/src/uu/realpath/src/realpath.rs b/src/uu/realpath/src/realpath.rs index 1a6d42790..cb7a09a41 100644 --- a/src/uu/realpath/src/realpath.rs +++ b/src/uu/realpath/src/realpath.rs @@ -20,11 +20,12 @@ use uucore::{ error::{FromIo, UResult}, format_usage, fs::{canonicalize, MissingHandling, ResolveMode}, + help_about, help_usage, }; use uucore::{error::UClapError, show, show_if_err}; -static ABOUT: &str = "Print the resolved path"; -const USAGE: &str = "{} [OPTION]... FILE..."; +static ABOUT: &str = help_about!("realpath.md"); +const USAGE: &str = help_usage!("realpath.md"); static OPT_QUIET: &str = "quiet"; static OPT_STRIP: &str = "strip";