pub fn uu_app() -> Commanddiff --git a/dev/src/uu_factor/cli.rs.html b/dev/src/uu_factor/cli.rs.html index 36be28618..296432115 100644 --- a/dev/src/uu_factor/cli.rs.html +++ b/dev/src/uu_factor/cli.rs.html @@ -87,6 +87,7 @@ 87 88 89 +90
// * This file is part of the uutils coreutils package.
// *
// * (c) 2014 T. Jameson Little <t.jameson.little@gmail.com>
@@ -105,15 +106,15 @@
pub use factor::*;
use uucore::display::Quotable;
use uucore::error::UResult;
-use uucore::{show_error, show_warning};
+use uucore::{format_usage, help_about, help_usage, show_error, show_warning};
mod miller_rabin;
pub mod numeric;
mod rho;
pub mod table;
-static ABOUT: &str = r#"Print the prime factors of the given NUMBER(s).
-If none are specified, read from standard input."#;
+const ABOUT: &str = help_about!("factor.md");
+const USAGE: &str = help_usage!("factor.md");
mod options {
pub static NUMBER: &str = "NUMBER";
@@ -173,6 +174,7 @@ If none are specified, read from standard input."#;
Command::new(uucore::util_name())
.version(crate_version!())
.about(ABOUT)
+ .override_usage(format_usage(USAGE))
.infer_long_args(true)
.arg(Arg::new(options::NUMBER).action(ArgAction::Append))
}
diff --git a/dev/src/uu_hashsum/hashsum.rs.html b/dev/src/uu_hashsum/hashsum.rs.html
index e75580f02..475414f27 100644
--- a/dev/src/uu_hashsum/hashsum.rs.html
+++ b/dev/src/uu_hashsum/hashsum.rs.html
@@ -669,6 +669,10 @@
669
670
671
+672
+673
+674
+675
// * This file is part of the uutils coreutils package.
// *
// * (c) Alex Lyon <arcterus@mail.com>
@@ -700,8 +704,11 @@
Sha3_384, Sha3_512, Sha512, Shake128, Shake256,
};
use uucore::{crash, display::Quotable, show_warning};
+use uucore::{format_usage, help_about, help_usage};
const NAME: &str = "hashsum";
+const ABOUT: &str = help_about!("hashsum.md");
+const USAGE: &str = help_usage!("hashsum.md");
struct Options {
algoname: &'static str,
@@ -969,7 +976,8 @@
const TEXT_HELP: &str = "read in text mode (default)";
Command::new(uucore::util_name())
.version(crate_version!())
- .about("Compute and check message digests.")
+ .about(ABOUT)
+ .override_usage(format_usage(USAGE))
.infer_long_args(true)
.arg(
Arg::new("binary")
diff --git a/dev/src/uu_head/head.rs.html b/dev/src/uu_head/head.rs.html
index 2b5985600..ead87449d 100644
--- a/dev/src/uu_head/head.rs.html
+++ b/dev/src/uu_head/head.rs.html
@@ -646,12 +646,6 @@
646
647
648
-649
-650
-651
-652
-653
-654
// * This file is part of the uutils coreutils package.
// *
// * For the full copyright and license information, please view the LICENSE
@@ -665,21 +659,15 @@
use uucore::display::Quotable;
use uucore::error::{FromIo, UError, UResult, USimpleError};
use uucore::lines::lines;
-use uucore::{format_usage, show};
+use uucore::{format_usage, help_about, help_usage, show};
const BUF_SIZE: usize = 65536;
/// The capacity in bytes for buffered writers.
const BUFWRITER_CAPACITY: usize = 16_384; // 16 kilobytes
-const ABOUT: &str = "\
- Print the first 10 lines of each FILE to standard output.\n\
- With more than one FILE, precede each with a header giving the file name.\n\
- With no FILE, or when FILE is -, read standard input.\n\
- \n\
- Mandatory arguments to long flags are mandatory for short flags too.\
- ";
-const USAGE: &str = "{} [FLAG]... [FILE]...";
+const ABOUT: &str = help_about!("head.md");
+const USAGE: &str = help_usage!("head.md");
mod options {
pub const BYTES_NAME: &str = "BYTES";
diff --git a/dev/uu_factor/fn.uu_app.html b/dev/uu_factor/fn.uu_app.html
index 3404b0cce..6007648ba 100644
--- a/dev/uu_factor/fn.uu_app.html
+++ b/dev/uu_factor/fn.uu_app.html
@@ -1 +1 @@
-uu_app in uu_factor - Rust
\ No newline at end of file
+uu_app in uu_factor - Rust
\ No newline at end of file
diff --git a/dev/uu_factor/index.html b/dev/uu_factor/index.html
index ba8e0eebd..28eefed73 100644
--- a/dev/uu_factor/index.html
+++ b/dev/uu_factor/index.html
@@ -1 +1 @@
-uu_factor - Rust
\ No newline at end of file
+uu_factor - Rust
\ No newline at end of file
diff --git a/dev/uu_hashsum/fn.uu_app_b3sum.html b/dev/uu_hashsum/fn.uu_app_b3sum.html
index 6bf9571c1..44b69c393 100644
--- a/dev/uu_hashsum/fn.uu_app_b3sum.html
+++ b/dev/uu_hashsum/fn.uu_app_b3sum.html
@@ -1 +1 @@
-uu_app_b3sum in uu_hashsum - Rust Function uu_hashsum::uu_app_b3sum
source · pub fn uu_app_b3sum() -> Command
\ No newline at end of file
+uu_app_b3sum in uu_hashsum - Rust Function uu_hashsum::uu_app_b3sum
source · pub fn uu_app_b3sum() -> Command
\ No newline at end of file
diff --git a/dev/uu_hashsum/fn.uu_app_bits.html b/dev/uu_hashsum/fn.uu_app_bits.html
index 013058f75..4259deb68 100644
--- a/dev/uu_hashsum/fn.uu_app_bits.html
+++ b/dev/uu_hashsum/fn.uu_app_bits.html
@@ -1 +1 @@
-uu_app_bits in uu_hashsum - Rust Function uu_hashsum::uu_app_bits
source · pub fn uu_app_bits() -> Command
\ No newline at end of file
+uu_app_bits in uu_hashsum - Rust Function uu_hashsum::uu_app_bits
source · pub fn uu_app_bits() -> Command
\ No newline at end of file
diff --git a/dev/uu_hashsum/fn.uu_app_common.html b/dev/uu_hashsum/fn.uu_app_common.html
index f0d0c0d76..cec26fd72 100644
--- a/dev/uu_hashsum/fn.uu_app_common.html
+++ b/dev/uu_hashsum/fn.uu_app_common.html
@@ -1 +1 @@
-uu_app_common in uu_hashsum - Rust Function uu_hashsum::uu_app_common
source · pub fn uu_app_common() -> Command
\ No newline at end of file
+uu_app_common in uu_hashsum - Rust Function uu_hashsum::uu_app_common
source · pub fn uu_app_common() -> Command
\ No newline at end of file
diff --git a/dev/uu_hashsum/fn.uu_app_custom.html b/dev/uu_hashsum/fn.uu_app_custom.html
index 3eb1d48af..03b8f061c 100644
--- a/dev/uu_hashsum/fn.uu_app_custom.html
+++ b/dev/uu_hashsum/fn.uu_app_custom.html
@@ -1 +1 @@
-uu_app_custom in uu_hashsum - Rust Function uu_hashsum::uu_app_custom
source · pub fn uu_app_custom() -> Command
\ No newline at end of file
+uu_app_custom in uu_hashsum - Rust Function uu_hashsum::uu_app_custom
source · pub fn uu_app_custom() -> Command
\ No newline at end of file
diff --git a/dev/uu_hashsum/fn.uumain.html b/dev/uu_hashsum/fn.uumain.html
index c263b535e..33b843c46 100644
--- a/dev/uu_hashsum/fn.uumain.html
+++ b/dev/uu_hashsum/fn.uumain.html
@@ -1 +1 @@
-uumain in uu_hashsum - Rust Function uu_hashsum::uumain
source · pub fn uumain(args: impl Args) -> i32
\ No newline at end of file
+uumain in uu_hashsum - Rust Function uu_hashsum::uumain
source · pub fn uumain(args: impl Args) -> i32
\ No newline at end of file
diff --git a/dev/uu_hashsum/index.html b/dev/uu_hashsum/index.html
index ec1cb1b34..155ab7bc1 100644
--- a/dev/uu_hashsum/index.html
+++ b/dev/uu_hashsum/index.html
@@ -1 +1 @@
-uu_hashsum - Rust
\ No newline at end of file
+uu_hashsum - Rust
\ No newline at end of file
diff --git a/dev/uu_head/fn.uu_app.html b/dev/uu_head/fn.uu_app.html
index 3c7b5daa5..3c19ad6a4 100644
--- a/dev/uu_head/fn.uu_app.html
+++ b/dev/uu_head/fn.uu_app.html
@@ -1 +1 @@
-uu_app in uu_head - Rust
\ No newline at end of file
+uu_app in uu_head - Rust
\ No newline at end of file
diff --git a/dev/uu_head/fn.uumain.html b/dev/uu_head/fn.uumain.html
index 2a571013a..a340d78e9 100644
--- a/dev/uu_head/fn.uumain.html
+++ b/dev/uu_head/fn.uumain.html
@@ -1 +1 @@
-uumain in uu_head - Rust
\ No newline at end of file
+uumain in uu_head - Rust
\ No newline at end of file
diff --git a/dev/uu_head/index.html b/dev/uu_head/index.html
index 95e9d56f7..32d5f062f 100644
--- a/dev/uu_head/index.html
+++ b/dev/uu_head/index.html
@@ -1 +1 @@
-uu_head - Rust
\ No newline at end of file
+uu_head - Rust
\ No newline at end of file