mirror of
https://github.com/uutils/coreutils
synced 2024-12-13 23:02:38 +00:00
Merge pull request #4547 from papparapa/mktemp-move-help-strings-to-md-file
mktemp: move help strings to markdown file
This commit is contained in:
commit
257587accf
2 changed files with 10 additions and 3 deletions
7
src/uu/mktemp/mktemp.md
Normal file
7
src/uu/mktemp/mktemp.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
# mktemp
|
||||
|
||||
```
|
||||
mktemp [OPTION]... [TEMPLATE]
|
||||
```
|
||||
|
||||
Create a temporary file or directory.
|
|
@ -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";
|
||||
|
||||
|
|
Loading…
Reference in a new issue