1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 12:07:46 +00:00

mktemp: move help strings to markdown file

This commit is contained in:
Koki Ueha 2023-03-19 03:58:56 +00:00
parent 60bf8e1f88
commit 7376f3ad02
2 changed files with 10 additions and 3 deletions

7
src/uu/mktemp/mktemp.md Normal file
View file

@ -0,0 +1,7 @@
# mktemp
```
mktemp [OPTION]... [TEMPLATE]
```
Create a temporary file or directory.

View file

@ -11,7 +11,7 @@
use clap::{crate_version, Arg, ArgAction, ArgMatches, Command};
use uucore::display::{println_verbatim, Quotable};
use uucore::error::{FromIo, UError, UResult, UUsageError};
use uucore::format_usage;
use uucore::{format_usage, help_about, help_usage};
use std::env;
use std::error::Error;
@ -28,8 +28,8 @@ use std::os::unix::prelude::PermissionsExt;
use rand::Rng;
use tempfile::Builder;
static ABOUT: &str = "Create a temporary file or directory.";
const USAGE: &str = "{} [OPTION]... [TEMPLATE]";
const ABOUT: &str = help_about!("mktemp.md");
const USAGE: &str = help_usage!("mktemp.md");
static DEFAULT_TEMPLATE: &str = "tmp.XXXXXXXXXX";