pub fn uu_app() -> Command// * This file is part of the uutils coreutils package.
// *
// * (c) Colin Warren <me@zv.ms>
@@ -60,8 +63,10 @@
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]
@@ -77,6 +82,7 @@
Command::new(uucore::util_name())
.version(crate_version!())
.about(ABOUT)
+ .override_usage(format_usage(USAGE))
.infer_long_args(true)
.arg(
Arg::new(OPT_PATH)
diff --git a/dev/uu_unlink/fn.uu_app.html b/dev/uu_unlink/fn.uu_app.html
index 358ea4a4d..8e066fe54 100644
--- a/dev/uu_unlink/fn.uu_app.html
+++ b/dev/uu_unlink/fn.uu_app.html
@@ -1 +1 @@
-uu_app in uu_unlink - Rust
\ No newline at end of file
+uu_app in uu_unlink - Rust
\ No newline at end of file
diff --git a/dev/uu_unlink/fn.uumain.html b/dev/uu_unlink/fn.uumain.html
index 942b03f38..666a9ea17 100644
--- a/dev/uu_unlink/fn.uumain.html
+++ b/dev/uu_unlink/fn.uumain.html
@@ -1 +1 @@
-uumain in uu_unlink - Rust
\ No newline at end of file
+uumain in uu_unlink - Rust
\ No newline at end of file
diff --git a/dev/uu_unlink/index.html b/dev/uu_unlink/index.html
index d4f8b7714..aff8a1f83 100644
--- a/dev/uu_unlink/index.html
+++ b/dev/uu_unlink/index.html
@@ -1 +1 @@
-uu_unlink - Rust
\ No newline at end of file
+uu_unlink - Rust
\ No newline at end of file
diff --git a/dev/uucore/error/trait.UClapError.html b/dev/uucore/error/trait.UClapError.html
index 4f627af47..af6d6f8d4 100644
--- a/dev/uucore/error/trait.UClapError.html
+++ b/dev/uucore/error/trait.UClapError.html
@@ -1,4 +1,4 @@
UClapError in uucore::error - Rust Trait uucore::error::UClapError
source · pub trait UClapError<T> {
fn with_exit_code(self, code: i32) -> T;
}
Expand description
Extension trait for clap::Error to adjust the exit code.
-Required Methods§
sourcefn with_exit_code(self, code: i32) -> T
Implementations on Foreign Types§
source§impl UClapError<ClapErrorWrapper> for Error
source§fn with_exit_code(self, code: i32) -> ClapErrorWrapper
source§impl UClapError<Result<ArgMatches, ClapErrorWrapper>> for Result<ArgMatches, Error>
source§fn with_exit_code(self, code: i32) -> Result<ArgMatches, ClapErrorWrapper>
Implementors§
\ No newline at end of file
+Required Methods§
sourcefn with_exit_code(self, code: i32) -> T
Implementations on Foreign Types§
source§impl UClapError<ClapErrorWrapper> for Error
source§fn with_exit_code(self, code: i32) -> ClapErrorWrapper
source§impl UClapError<Result<ArgMatches, ClapErrorWrapper>> for Result<ArgMatches, Error>
source§fn with_exit_code(self, code: i32) -> Result<ArgMatches, ClapErrorWrapper>
Implementors§