diff --git a/src/uu/pathchk/pathchk.md b/src/uu/pathchk/pathchk.md new file mode 100644 index 000000000..2e5eca959 --- /dev/null +++ b/src/uu/pathchk/pathchk.md @@ -0,0 +1,7 @@ +# pathchk + +``` +pathchk [OPTION]... NAME... +``` + +Check whether file names are valid or portable diff --git a/src/uu/pathchk/src/pathchk.rs b/src/uu/pathchk/src/pathchk.rs index 6dad9f79d..598b9718b 100644 --- a/src/uu/pathchk/src/pathchk.rs +++ b/src/uu/pathchk/src/pathchk.rs @@ -13,7 +13,7 @@ use std::fs; use std::io::{ErrorKind, Write}; use uucore::display::Quotable; use uucore::error::{set_exit_code, UResult, UUsageError}; -use uucore::format_usage; +use uucore::{format_usage, help_about, help_usage}; // operating mode enum Mode { @@ -23,8 +23,8 @@ enum Mode { Both, // a combination of `Basic` and `Extra` } -static ABOUT: &str = "Check whether file names are valid or portable"; -const USAGE: &str = "{} [OPTION]... NAME..."; +const ABOUT: &str = help_about!("pathchk.md"); +const USAGE: &str = help_usage!("pathchk.md"); mod options { pub const POSIX: &str = "posix";