mirror of
https://github.com/uutils/coreutils
synced 2024-12-13 23:02:38 +00:00
mkdir: move help strings to markdown file
This commit is contained in:
parent
bc0273f48f
commit
7cfeba0d22
2 changed files with 15 additions and 5 deletions
11
src/uu/mkdir/mkdir.md
Normal file
11
src/uu/mkdir/mkdir.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
# mkdir
|
||||
|
||||
```
|
||||
mkdir [OPTION]... [USER]
|
||||
```
|
||||
|
||||
Create the given DIRECTORY(ies) if they do not exist
|
||||
|
||||
## Long Usage
|
||||
|
||||
Each MODE is of the form '[ugoa]*([-+=]([rwxXst]*|[ugo]))+|[-+=]?[0-7]+'.
|
|
@ -18,14 +18,13 @@ use uucore::error::{UResult, USimpleError};
|
|||
#[cfg(not(windows))]
|
||||
use uucore::mode;
|
||||
use uucore::{display::Quotable, fs::dir_strip_dot_for_creation};
|
||||
use uucore::{format_usage, show, show_if_err};
|
||||
use uucore::{format_usage, help_about, help_section, help_usage, show, show_if_err};
|
||||
|
||||
static DEFAULT_PERM: u32 = 0o755;
|
||||
|
||||
const ABOUT: &str = "Create the given DIRECTORY(ies) if they do not exist";
|
||||
const USAGE: &str = "{} [OPTION]... [USER]";
|
||||
const LONG_USAGE: &str =
|
||||
"Each MODE is of the form '[ugoa]*([-+=]([rwxXst]*|[ugo]))+|[-+=]?[0-7]+'.";
|
||||
const ABOUT: &str = help_about!("mkdir.md");
|
||||
const USAGE: &str = help_usage!("mkdir.md");
|
||||
const LONG_USAGE: &str = help_section!("long usage", "mkdir.md");
|
||||
|
||||
mod options {
|
||||
pub const MODE: &str = "mode";
|
||||
|
|
Loading…
Reference in a new issue