mirror of
https://github.com/uutils/coreutils
synced 2025-01-05 17:59:00 +00:00
Merge pull request #4429 from chenchiii/realpath-move-help-strings-to-md-file
realpath: move help strings to markdown file
This commit is contained in:
commit
872f2bd794
2 changed files with 10 additions and 2 deletions
7
src/uu/realpath/realpath.md
Normal file
7
src/uu/realpath/realpath.md
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
# realpath
|
||||||
|
|
||||||
|
```
|
||||||
|
realpath [OPTION]... FILE...
|
||||||
|
```
|
||||||
|
|
||||||
|
Print the resolved path
|
|
@ -20,11 +20,12 @@ use uucore::{
|
||||||
error::{FromIo, UResult},
|
error::{FromIo, UResult},
|
||||||
format_usage,
|
format_usage,
|
||||||
fs::{canonicalize, MissingHandling, ResolveMode},
|
fs::{canonicalize, MissingHandling, ResolveMode},
|
||||||
|
help_about, help_usage,
|
||||||
};
|
};
|
||||||
use uucore::{error::UClapError, show, show_if_err};
|
use uucore::{error::UClapError, show, show_if_err};
|
||||||
|
|
||||||
static ABOUT: &str = "Print the resolved path";
|
static ABOUT: &str = help_about!("realpath.md");
|
||||||
const USAGE: &str = "{} [OPTION]... FILE...";
|
const USAGE: &str = help_usage!("realpath.md");
|
||||||
|
|
||||||
static OPT_QUIET: &str = "quiet";
|
static OPT_QUIET: &str = "quiet";
|
||||||
static OPT_STRIP: &str = "strip";
|
static OPT_STRIP: &str = "strip";
|
||||||
|
|
Loading…
Reference in a new issue