mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-01 21:47:46 +00:00
Merge pull request #4423 from jhowww/link-move-help-strings-to-md-file
link: move help strings to markdown file
This commit is contained in:
commit
f3fe6cf84b
2 changed files with 10 additions and 3 deletions
7
src/uu/link/link.md
Normal file
7
src/uu/link/link.md
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
# link
|
||||||
|
|
||||||
|
```
|
||||||
|
link FILE1 FILE2
|
||||||
|
```
|
||||||
|
|
||||||
|
Call the link function to create a link named FILE2 to an existing FILE1.
|
|
@ -11,10 +11,10 @@ use std::fs::hard_link;
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
use uucore::display::Quotable;
|
use uucore::display::Quotable;
|
||||||
use uucore::error::{FromIo, UResult};
|
use uucore::error::{FromIo, UResult};
|
||||||
use uucore::format_usage;
|
use uucore::{format_usage, help_about, help_usage};
|
||||||
|
|
||||||
static ABOUT: &str = "Call the link function to create a link named FILE2 to an existing FILE1.";
|
static ABOUT: &str = help_about!("link.md");
|
||||||
const USAGE: &str = "{} FILE1 FILE2";
|
const USAGE: &str = help_usage!("link.md");
|
||||||
|
|
||||||
pub mod options {
|
pub mod options {
|
||||||
pub static FILES: &str = "FILES";
|
pub static FILES: &str = "FILES";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue