1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-01 05:27:45 +00:00

Merge pull request #4675 from miles170/unlink-move-help-strings-to-md-fil

unlink: move help strings to markdown file
This commit is contained in:
Sylvestre Ledru 2023-03-29 21:33:16 +02:00 committed by GitHub
commit eaf49fc877
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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`.