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:
commit
eaf49fc877
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::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
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