mirror of
https://github.com/uutils/coreutils
synced 2024-12-14 15:22:38 +00:00
relpath: move help strings to markdown file
This commit is contained in:
parent
e5b6f63305
commit
fcdb7e48ed
2 changed files with 11 additions and 3 deletions
8
src/uu/relpath/relpath.md
Normal file
8
src/uu/relpath/relpath.md
Normal file
|
@ -0,0 +1,8 @@
|
|||
# relpath
|
||||
|
||||
```
|
||||
relpath [-d DIR] TO [FROM]
|
||||
```
|
||||
|
||||
Convert TO destination to the relative path from the FROM dir.
|
||||
If FROM path is omitted, current working dir will be used.
|
|
@ -14,10 +14,10 @@ use uucore::display::println_verbatim;
|
|||
use uucore::error::{FromIo, UResult};
|
||||
use uucore::format_usage;
|
||||
use uucore::fs::{canonicalize, MissingHandling, ResolveMode};
|
||||
use uucore::{help_about, help_usage};
|
||||
|
||||
static ABOUT: &str = "Convert TO destination to the relative path from the FROM dir.
|
||||
If FROM path is omitted, current working dir will be used.";
|
||||
const USAGE: &str = "{} [-d DIR] TO [FROM]";
|
||||
const USAGE: &str = help_usage!("relpath.md");
|
||||
const ABOUT: &str = help_about!("relpath.md");
|
||||
|
||||
mod options {
|
||||
pub const DIR: &str = "DIR";
|
||||
|
|
Loading…
Reference in a new issue