diff --git a/src/uu/rmdir/rmdir.md b/src/uu/rmdir/rmdir.md new file mode 100644 index 000000000..16f7bf82b --- /dev/null +++ b/src/uu/rmdir/rmdir.md @@ -0,0 +1,7 @@ +# rmdir + +``` +rmdir [OPTION]... DIRECTORY... +``` + +Remove the DIRECTORY(ies), if they are empty. diff --git a/src/uu/rmdir/src/rmdir.rs b/src/uu/rmdir/src/rmdir.rs index 51240b5ad..9a864266a 100644 --- a/src/uu/rmdir/src/rmdir.rs +++ b/src/uu/rmdir/src/rmdir.rs @@ -16,10 +16,10 @@ use std::path::Path; use uucore::display::Quotable; use uucore::error::{set_exit_code, strip_errno, UResult}; -use uucore::{format_usage, show_error, util_name}; +use uucore::{format_usage, help_about, help_usage, show_error, util_name}; -static ABOUT: &str = "Remove the DIRECTORY(ies), if they are empty."; -const USAGE: &str = "{} [OPTION]... DIRECTORY..."; +static ABOUT: &str = help_about!("rmdir.md"); +const USAGE: &str = help_usage!("rmdir.md"); static OPT_IGNORE_FAIL_NON_EMPTY: &str = "ignore-fail-on-non-empty"; static OPT_PARENTS: &str = "parents"; static OPT_VERBOSE: &str = "verbose";