pub fn uu_app() -> Commanddiff --git a/dev/src/uu_comm/comm.rs.html b/dev/src/uu_comm/comm.rs.html index 8ffa5e18c..653b9e631 100644 --- a/dev/src/uu_comm/comm.rs.html +++ b/dev/src/uu_comm/comm.rs.html @@ -204,8 +204,6 @@ 204 205 206 -207 -208
// This file is part of the uutils coreutils package.
//
// (c) Michael Gehring <mg@ebfe.org>
@@ -221,13 +219,12 @@
use std::path::Path;
use uucore::error::FromIo;
use uucore::error::UResult;
-use uucore::format_usage;
+use uucore::{format_usage, help_about, help_usage};
use clap::{crate_version, Arg, ArgAction, ArgMatches, Command};
-static ABOUT: &str = "Compare two sorted files line by line";
-static LONG_HELP: &str = "";
-const USAGE: &str = "{} [OPTION]... FILE1 FILE2";
+const ABOUT: &str = help_about!("comm.md");
+const USAGE: &str = help_usage!("comm.md");
mod options {
pub const COLUMN_1: &str = "1";
@@ -368,7 +365,6 @@
Command::new(uucore::util_name())
.version(crate_version!())
.about(ABOUT)
- .after_help(LONG_HELP)
.override_usage(format_usage(USAGE))
.infer_long_args(true)
.arg(
diff --git a/dev/src/uu_dirname/dirname.rs.html b/dev/src/uu_dirname/dirname.rs.html
index e65e2fe33..76551a2b2 100644
--- a/dev/src/uu_dirname/dirname.rs.html
+++ b/dev/src/uu_dirname/dirname.rs.html
@@ -86,8 +86,6 @@
86
87
88
-89
-90
// This file is part of the uutils coreutils package.
//
// (c) Derek Chiang <derekchiang93@gmail.com>
@@ -99,13 +97,11 @@
use std::path::Path;
use uucore::display::print_verbatim;
use uucore::error::{UResult, UUsageError};
-use uucore::format_usage;
+use uucore::{format_usage, help_about, help_section, help_usage};
-const ABOUT: &str = "Strip last component from file name";
-const USAGE: &str = "{} [OPTION] NAME...";
-const LONG_USAGE: &str = "\
- Output each NAME with its last non-slash component and trailing slashes \n\
- removed; if NAME contains no /'s, output '.' (meaning the current directory).";
+const ABOUT: &str = help_about!("dirname.md");
+const USAGE: &str = help_usage!("dirname.md");
+const AFTER_HELP: &str = help_section!("after help", "dirname.md");
mod options {
pub const ZERO: &str = "zero";
@@ -116,7 +112,7 @@
pub fn uumain(args: impl uucore::Args) -> UResult<()> {
let args = args.collect_lossy();
- let matches = uu_app().after_help(LONG_USAGE).try_get_matches_from(args)?;
+ let matches = uu_app().after_help(AFTER_HELP).try_get_matches_from(args)?;
let separator = if matches.get_flag(options::ZERO) {
"\0"
diff --git a/dev/uu_comm/fn.uu_app.html b/dev/uu_comm/fn.uu_app.html
index 9e0d5441a..167bb2b88 100644
--- a/dev/uu_comm/fn.uu_app.html
+++ b/dev/uu_comm/fn.uu_app.html
@@ -1 +1 @@
-uu_app in uu_comm - Rust
\ No newline at end of file
+uu_app in uu_comm - Rust
\ No newline at end of file
diff --git a/dev/uu_comm/fn.uumain.html b/dev/uu_comm/fn.uumain.html
index 246df8a71..329520726 100644
--- a/dev/uu_comm/fn.uumain.html
+++ b/dev/uu_comm/fn.uumain.html
@@ -1 +1 @@
-uumain in uu_comm - Rust
\ No newline at end of file
+uumain in uu_comm - Rust
\ No newline at end of file
diff --git a/dev/uu_comm/index.html b/dev/uu_comm/index.html
index 1692d218f..ede61403f 100644
--- a/dev/uu_comm/index.html
+++ b/dev/uu_comm/index.html
@@ -1 +1 @@
-uu_comm - Rust
\ No newline at end of file
+uu_comm - Rust
\ No newline at end of file
diff --git a/dev/uu_dirname/fn.uu_app.html b/dev/uu_dirname/fn.uu_app.html
index 61c8a240c..26757185a 100644
--- a/dev/uu_dirname/fn.uu_app.html
+++ b/dev/uu_dirname/fn.uu_app.html
@@ -1 +1 @@
-uu_app in uu_dirname - Rust Function uu_dirname::uu_app
source · pub fn uu_app() -> Command
\ No newline at end of file
+uu_app in uu_dirname - Rust Function uu_dirname::uu_app
source · pub fn uu_app() -> Command
\ No newline at end of file
diff --git a/dev/uu_dirname/fn.uumain.html b/dev/uu_dirname/fn.uumain.html
index 3755fe6dc..72c7ece75 100644
--- a/dev/uu_dirname/fn.uumain.html
+++ b/dev/uu_dirname/fn.uumain.html
@@ -1 +1 @@
-uumain in uu_dirname - Rust Function uu_dirname::uumain
source · pub fn uumain(args: impl Args) -> i32
\ No newline at end of file
+uumain in uu_dirname - Rust Function uu_dirname::uumain
source · pub fn uumain(args: impl Args) -> i32
\ No newline at end of file
diff --git a/dev/uu_dirname/index.html b/dev/uu_dirname/index.html
index 882736fb7..7dbceb075 100644
--- a/dev/uu_dirname/index.html
+++ b/dev/uu_dirname/index.html
@@ -1 +1 @@
-uu_dirname - Rust
\ No newline at end of file
+uu_dirname - Rust
\ No newline at end of file