From 63150aeb2a2ec3266d2abe8bb44fcad99c71fd5b Mon Sep 17 00:00:00 2001 From: sylvestre Date: Mon, 20 Mar 2023 02:47:14 +0000 Subject: [PATCH] deploy: f0e8d44e6e64ee3354f95864c0a25b74cf1c1151 --- dev/src/uu_date/date.rs.html | 2 ++ dev/src/uu_fold/fold.rs.html | 8 +++--- dev/src/uu_mknod/mknod.rs.html | 44 ++++---------------------------- dev/src/uu_mktemp/mktemp.rs.html | 6 ++--- dev/src/uu_who/who.rs.html | 6 ++--- dev/uu_date/fn.uu_app.html | 2 +- dev/uu_date/index.html | 2 +- dev/uu_fold/fn.uu_app.html | 2 +- dev/uu_fold/fn.uumain.html | 2 +- dev/uu_fold/index.html | 2 +- dev/uu_mknod/fn.uu_app.html | 2 +- dev/uu_mknod/fn.uumain.html | 2 +- dev/uu_mknod/index.html | 2 +- 13 files changed, 24 insertions(+), 58 deletions(-) diff --git a/dev/src/uu_date/date.rs.html b/dev/src/uu_date/date.rs.html index 08c533865..3ad3715de 100644 --- a/dev/src/uu_date/date.rs.html +++ b/dev/src/uu_date/date.rs.html @@ -447,6 +447,7 @@ 447 448 449 +450
// This file is part of the uutils coreutils package.
 //
 // (c) Anthony Deschamps <anthony.j.deschamps@gmail.com>
@@ -763,6 +764,7 @@
             Arg::new(OPT_RFC_3339)
                 .long(OPT_RFC_3339)
                 .value_name("FMT")
+                .value_parser([DATE, SECOND, SECONDS, NS])
                 .help(RFC_3339_HELP_STRING),
         )
         .arg(
diff --git a/dev/src/uu_fold/fold.rs.html b/dev/src/uu_fold/fold.rs.html
index bac261a6a..7cdc2dbce 100644
--- a/dev/src/uu_fold/fold.rs.html
+++ b/dev/src/uu_fold/fold.rs.html
@@ -293,7 +293,6 @@
 293
 294
 295
-296
 
//  * This file is part of the uutils coreutils package.
 //  *
 //  * (c) Alex Lyon <arcterus@mail.com>
@@ -309,13 +308,12 @@
 use std::path::Path;
 use uucore::display::Quotable;
 use uucore::error::{FromIo, UResult, USimpleError};
-use uucore::format_usage;
+use uucore::{format_usage, help_about, help_usage};
 
 const TAB_WIDTH: usize = 8;
 
-static USAGE: &str = "{} [OPTION]... [FILE]...";
-static ABOUT: &str = "Writes each file (or standard input if no files are given)
- to standard output whilst breaking long lines";
+const USAGE: &str = help_usage!("fold.md");
+const ABOUT: &str = help_about!("fold.md");
 
 mod options {
     pub const BYTES: &str = "bytes";
diff --git a/dev/src/uu_mknod/mknod.rs.html b/dev/src/uu_mknod/mknod.rs.html
index bed2a2b71..807def20b 100644
--- a/dev/src/uu_mknod/mknod.rs.html
+++ b/dev/src/uu_mknod/mknod.rs.html
@@ -191,23 +191,6 @@
 191
 192
 193
-194
-195
-196
-197
-198
-199
-200
-201
-202
-203
-204
-205
-206
-207
-208
-209
-210
 
// This file is part of the uutils coreutils package.
 //
 // (c) Jian Zeng <anonymousknight96@gmail.com>
@@ -224,28 +207,11 @@
 
 use uucore::display::Quotable;
 use uucore::error::{set_exit_code, UResult, USimpleError, UUsageError};
-use uucore::format_usage;
+use uucore::{format_usage, help_about, help_section, help_usage};
 
-static ABOUT: &str = "Create the special file NAME of the given TYPE.";
-static USAGE: &str = "{} [OPTION]... NAME TYPE [MAJOR MINOR]";
-static LONG_HELP: &str = "Mandatory arguments to long options are mandatory for short options too.
--m, --mode=MODE    set file permission bits to MODE, not a=rw - umask
---help     display this help and exit
---version  output version information and exit
-
-Both MAJOR and MINOR must be specified when TYPE is b, c, or u, and they
-must be omitted when TYPE is p.  If MAJOR or MINOR begins with 0x or 0X,
-it is interpreted as hexadecimal; otherwise, if it begins with 0, as octal;
-otherwise, as decimal.  TYPE may be:
-
-b      create a block (buffered) special file
-c, u   create a character (unbuffered) special file
-p      create a FIFO
-
-NOTE: your shell may have its own version of mknod, which usually supersedes
-the version described here.  Please refer to your shell's documentation
-for details about the options it supports.
-";
+const ABOUT: &str = help_about!("mknod.md");
+const USAGE: &str = help_usage!("mknod.md");
+const AFTER_HELP: &str = help_section!("after help", "mknod.md");
 
 const MODE_RW_UGO: mode_t = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH;
 
@@ -352,7 +318,7 @@ for details about the options it supports.
     Command::new(uucore::util_name())
         .version(crate_version!())
         .override_usage(format_usage(USAGE))
-        .after_help(LONG_HELP)
+        .after_help(AFTER_HELP)
         .about(ABOUT)
         .infer_long_args(true)
         .arg(
diff --git a/dev/src/uu_mktemp/mktemp.rs.html b/dev/src/uu_mktemp/mktemp.rs.html
index 2f619d25e..c3608193e 100644
--- a/dev/src/uu_mktemp/mktemp.rs.html
+++ b/dev/src/uu_mktemp/mktemp.rs.html
@@ -595,7 +595,7 @@
 use clap::{crate_version, Arg, ArgAction, ArgMatches, Command};
 use uucore::display::{println_verbatim, Quotable};
 use uucore::error::{FromIo, UError, UResult, UUsageError};
-use uucore::format_usage;
+use uucore::{format_usage, help_about, help_usage};
 
 use std::env;
 use std::error::Error;
@@ -612,8 +612,8 @@
 use rand::Rng;
 use tempfile::Builder;
 
-static ABOUT: &str = "Create a temporary file or directory.";
-const USAGE: &str = "{} [OPTION]... [TEMPLATE]";
+const ABOUT: &str = help_about!("mktemp.md");
+const USAGE: &str = help_usage!("mktemp.md");
 
 static DEFAULT_TEMPLATE: &str = "tmp.XXXXXXXXXX";
 
diff --git a/dev/src/uu_who/who.rs.html b/dev/src/uu_who/who.rs.html
index 29305a710..6ad458269 100644
--- a/dev/src/uu_who/who.rs.html
+++ b/dev/src/uu_who/who.rs.html
@@ -588,7 +588,7 @@
 use std::fmt::Write;
 use std::os::unix::fs::MetadataExt;
 use std::path::PathBuf;
-use uucore::format_usage;
+use uucore::{format_usage, help_about, help_usage};
 
 mod options {
     pub const ALL: &str = "all";
@@ -608,8 +608,8 @@
     pub const FILE: &str = "FILE"; // if length=1: FILE, if length=2: ARG1 ARG2
 }
 
-static ABOUT: &str = "Print information about users who are currently logged in.";
-const USAGE: &str = "{} [OPTION]... [ FILE | ARG1 ARG2 ]";
+const ABOUT: &str = help_about!("who.md");
+const USAGE: &str = help_usage!("who.md");
 
 #[cfg(target_os = "linux")]
 static RUNLEVEL_HELP: &str = "print current runlevel";
diff --git a/dev/uu_date/fn.uu_app.html b/dev/uu_date/fn.uu_app.html
index 18c3b92a5..6205a5dd9 100644
--- a/dev/uu_date/fn.uu_app.html
+++ b/dev/uu_date/fn.uu_app.html
@@ -1 +1 @@
-uu_app in uu_date - Rust

Function uu_date::uu_app

source ·
pub fn uu_app() -> Command
\ No newline at end of file +uu_app in uu_date - Rust

Function uu_date::uu_app

source ·
pub fn uu_app() -> Command
\ No newline at end of file diff --git a/dev/uu_date/index.html b/dev/uu_date/index.html index f1149d89b..bd54f571c 100644 --- a/dev/uu_date/index.html +++ b/dev/uu_date/index.html @@ -1 +1 @@ -uu_date - Rust
\ No newline at end of file +uu_date - Rust
\ No newline at end of file diff --git a/dev/uu_fold/fn.uu_app.html b/dev/uu_fold/fn.uu_app.html index 79cd862e6..68d2e56b9 100644 --- a/dev/uu_fold/fn.uu_app.html +++ b/dev/uu_fold/fn.uu_app.html @@ -1 +1 @@ -uu_app in uu_fold - Rust

Function uu_fold::uu_app

source ·
pub fn uu_app() -> Command
\ No newline at end of file +uu_app in uu_fold - Rust

Function uu_fold::uu_app

source ·
pub fn uu_app() -> Command
\ No newline at end of file diff --git a/dev/uu_fold/fn.uumain.html b/dev/uu_fold/fn.uumain.html index feb2880a5..f183dc5ca 100644 --- a/dev/uu_fold/fn.uumain.html +++ b/dev/uu_fold/fn.uumain.html @@ -1 +1 @@ -uumain in uu_fold - Rust

Function uu_fold::uumain

source ·
pub fn uumain(args: impl Args) -> i32
\ No newline at end of file +uumain in uu_fold - Rust

Function uu_fold::uumain

source ·
pub fn uumain(args: impl Args) -> i32
\ No newline at end of file diff --git a/dev/uu_fold/index.html b/dev/uu_fold/index.html index 1091ae259..a1f63186c 100644 --- a/dev/uu_fold/index.html +++ b/dev/uu_fold/index.html @@ -1 +1 @@ -uu_fold - Rust
\ No newline at end of file +uu_fold - Rust
\ No newline at end of file diff --git a/dev/uu_mknod/fn.uu_app.html b/dev/uu_mknod/fn.uu_app.html index d61d73224..55426bf0d 100644 --- a/dev/uu_mknod/fn.uu_app.html +++ b/dev/uu_mknod/fn.uu_app.html @@ -1 +1 @@ -uu_app in uu_mknod - Rust

Function uu_mknod::uu_app

source ·
pub fn uu_app() -> Command
\ No newline at end of file +uu_app in uu_mknod - Rust

Function uu_mknod::uu_app

source ·
pub fn uu_app() -> Command
\ No newline at end of file diff --git a/dev/uu_mknod/fn.uumain.html b/dev/uu_mknod/fn.uumain.html index 20c33ca1d..2b391ee84 100644 --- a/dev/uu_mknod/fn.uumain.html +++ b/dev/uu_mknod/fn.uumain.html @@ -1 +1 @@ -uumain in uu_mknod - Rust

Function uu_mknod::uumain

source ·
pub fn uumain(args: impl Args) -> i32
\ No newline at end of file +uumain in uu_mknod - Rust

Function uu_mknod::uumain

source ·
pub fn uumain(args: impl Args) -> i32
\ No newline at end of file diff --git a/dev/uu_mknod/index.html b/dev/uu_mknod/index.html index df3750005..e8871eeb9 100644 --- a/dev/uu_mknod/index.html +++ b/dev/uu_mknod/index.html @@ -1 +1 @@ -uu_mknod - Rust
\ No newline at end of file +uu_mknod - Rust
\ No newline at end of file