mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-02 05:57:46 +00:00
unlink: move help strings to markdown file
This commit is contained in:
parent
a4678a484a
commit
012c5eaa1f
2 changed files with 11 additions and 1 deletions
|
@ -16,8 +16,10 @@ use clap::{crate_version, Arg, Command};
|
||||||
|
|
||||||
use uucore::display::Quotable;
|
use uucore::display::Quotable;
|
||||||
use uucore::error::{FromIo, UResult};
|
use uucore::error::{FromIo, UResult};
|
||||||
|
use uucore::{format_usage, help_about, help_usage};
|
||||||
|
|
||||||
static ABOUT: &str = "Unlink the file at FILE.";
|
const ABOUT: &str = help_about!("unlink.md");
|
||||||
|
const USAGE: &str = help_usage!("unlink.md");
|
||||||
static OPT_PATH: &str = "FILE";
|
static OPT_PATH: &str = "FILE";
|
||||||
|
|
||||||
#[uucore::main]
|
#[uucore::main]
|
||||||
|
@ -33,6 +35,7 @@ pub fn uu_app() -> Command {
|
||||||
Command::new(uucore::util_name())
|
Command::new(uucore::util_name())
|
||||||
.version(crate_version!())
|
.version(crate_version!())
|
||||||
.about(ABOUT)
|
.about(ABOUT)
|
||||||
|
.override_usage(format_usage(USAGE))
|
||||||
.infer_long_args(true)
|
.infer_long_args(true)
|
||||||
.arg(
|
.arg(
|
||||||
Arg::new(OPT_PATH)
|
Arg::new(OPT_PATH)
|
||||||
|
|
7
src/uu/unlink/unlink.md
Normal file
7
src/uu/unlink/unlink.md
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
# unlink
|
||||||
|
|
||||||
|
```
|
||||||
|
unlink [FILE]
|
||||||
|
```
|
||||||
|
|
||||||
|
Unlink the file at `FILE`.
|
Loading…
Add table
Add a link
Reference in a new issue