1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-01 21:47:46 +00:00

unlink: move help strings to markdown file

This commit is contained in:
Miles Liu 2023-03-29 15:05:49 +08:00
parent a4678a484a
commit 012c5eaa1f
No known key found for this signature in database
GPG key ID: 4DB9B32F9B24A7A9
2 changed files with 11 additions and 1 deletions

View file

@ -16,8 +16,10 @@ use clap::{crate_version, Arg, Command};
use uucore::display::Quotable;
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";
#[uucore::main]
@ -33,6 +35,7 @@ pub fn uu_app() -> Command {
Command::new(uucore::util_name())
.version(crate_version!())
.about(ABOUT)
.override_usage(format_usage(USAGE))
.infer_long_args(true)
.arg(
Arg::new(OPT_PATH)

7
src/uu/unlink/unlink.md Normal file
View file

@ -0,0 +1,7 @@
# unlink
```
unlink [FILE]
```
Unlink the file at `FILE`.