From e6fec39db136014d64bc0ddecf464424ecb764a8 Mon Sep 17 00:00:00 2001 From: Cheng-Hao Date: Tue, 21 Feb 2023 11:05:35 -0800 Subject: [PATCH] mkdir: update markdown naming for consistency --- src/uu/mkdir/mkdir.md | 2 +- src/uu/mkdir/src/mkdir.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/uu/mkdir/mkdir.md b/src/uu/mkdir/mkdir.md index 79deafc46..1a6041a7e 100644 --- a/src/uu/mkdir/mkdir.md +++ b/src/uu/mkdir/mkdir.md @@ -6,6 +6,6 @@ mkdir [OPTION]... [USER] Create the given DIRECTORY(ies) if they do not exist -## Long Usage +## After Help Each MODE is of the form '[ugoa]*([-+=]([rwxXst]*|[ugo]))+|[-+=]?[0-7]+'. diff --git a/src/uu/mkdir/src/mkdir.rs b/src/uu/mkdir/src/mkdir.rs index ab92e7e74..9f490ecf9 100644 --- a/src/uu/mkdir/src/mkdir.rs +++ b/src/uu/mkdir/src/mkdir.rs @@ -24,7 +24,7 @@ static DEFAULT_PERM: u32 = 0o755; const ABOUT: &str = help_about!("mkdir.md"); const USAGE: &str = help_usage!("mkdir.md"); -const LONG_USAGE: &str = help_section!("long usage", "mkdir.md"); +const AFTER_HELP: &str = help_section!("after help", "mkdir.md"); mod options { pub const MODE: &str = "mode"; @@ -89,7 +89,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> { // Linux-specific options, not implemented // opts.optflag("Z", "context", "set SELinux security context" + // " of each created directory to CTX"), - let matches = uu_app().after_help(LONG_USAGE).try_get_matches_from(args)?; + let matches = uu_app().after_help(AFTER_HELP).try_get_matches_from(args)?; let dirs = matches .get_many::(options::DIRS)