This commit is contained in:
sylvestre
2023-03-22 02:37:56 +00:00
parent 178d460013
commit bbe1c365ae
14 changed files with 28 additions and 30 deletions
+5 -3
View File
@@ -87,6 +87,7 @@
<a href="#87" id="87">87</a>
<a href="#88" id="88">88</a>
<a href="#89" id="89">89</a>
<a href="#90" id="90">90</a>
</pre><pre class="rust"><code><span class="comment">// * This file is part of the uutils coreutils package.
// *
// * (c) 2014 T. Jameson Little &lt;t.jameson.little@gmail.com&gt;
@@ -105,15 +106,15 @@
<span class="kw">pub use </span>factor::<span class="kw-2">*</span>;
<span class="kw">use </span>uucore::display::Quotable;
<span class="kw">use </span>uucore::error::UResult;
<span class="kw">use </span>uucore::{show_error, show_warning};
<span class="kw">use </span>uucore::{format_usage, help_about, help_usage, show_error, show_warning};
<span class="kw">mod </span>miller_rabin;
<span class="kw">pub mod </span>numeric;
<span class="kw">mod </span>rho;
<span class="kw">pub mod </span>table;
<span class="kw">static </span>ABOUT: <span class="kw-2">&amp;</span>str = <span class="string">r#&quot;Print the prime factors of the given NUMBER(s).
If none are specified, read from standard input.&quot;#</span>;
<span class="kw">const </span>ABOUT: <span class="kw-2">&amp;</span>str = <span class="macro">help_about!</span>(<span class="string">&quot;factor.md&quot;</span>);
<span class="kw">const </span>USAGE: <span class="kw-2">&amp;</span>str = <span class="macro">help_usage!</span>(<span class="string">&quot;factor.md&quot;</span>);
<span class="kw">mod </span>options {
<span class="kw">pub static </span>NUMBER: <span class="kw-2">&amp;</span>str = <span class="string">&quot;NUMBER&quot;</span>;
@@ -173,6 +174,7 @@ If none are specified, read from standard input.&quot;#</span>;
Command::new(uucore::util_name())
.version(<span class="macro">crate_version!</span>())
.about(ABOUT)
.override_usage(format_usage(USAGE))
.infer_long_args(<span class="bool-val">true</span>)
.arg(Arg::new(options::NUMBER).action(ArgAction::Append))
}
+9 -1
View File
@@ -669,6 +669,10 @@
<a href="#669" id="669">669</a>
<a href="#670" id="670">670</a>
<a href="#671" id="671">671</a>
<a href="#672" id="672">672</a>
<a href="#673" id="673">673</a>
<a href="#674" id="674">674</a>
<a href="#675" id="675">675</a>
</pre><pre class="rust"><code><span class="comment">// * This file is part of the uutils coreutils package.
// *
// * (c) Alex Lyon &lt;arcterus@mail.com&gt;
@@ -700,8 +704,11 @@
Sha3_384, Sha3_512, Sha512, Shake128, Shake256,
};
<span class="kw">use </span>uucore::{crash, display::Quotable, show_warning};
<span class="kw">use </span>uucore::{format_usage, help_about, help_usage};
<span class="kw">const </span>NAME: <span class="kw-2">&amp;</span>str = <span class="string">&quot;hashsum&quot;</span>;
<span class="kw">const </span>ABOUT: <span class="kw-2">&amp;</span>str = <span class="macro">help_about!</span>(<span class="string">&quot;hashsum.md&quot;</span>);
<span class="kw">const </span>USAGE: <span class="kw-2">&amp;</span>str = <span class="macro">help_usage!</span>(<span class="string">&quot;hashsum.md&quot;</span>);
<span class="kw">struct </span>Options {
algoname: <span class="kw-2">&amp;</span><span class="lifetime">&#39;static </span>str,
@@ -969,7 +976,8 @@
</span><span class="kw">const </span>TEXT_HELP: <span class="kw-2">&amp;</span>str = <span class="string">&quot;read in text mode (default)&quot;</span>;
Command::new(uucore::util_name())
.version(<span class="macro">crate_version!</span>())
.about(<span class="string">&quot;Compute and check message digests.&quot;</span>)
.about(ABOUT)
.override_usage(format_usage(USAGE))
.infer_long_args(<span class="bool-val">true</span>)
.arg(
Arg::new(<span class="string">&quot;binary&quot;</span>)
+3 -15
View File
@@ -646,12 +646,6 @@
<a href="#646" id="646">646</a>
<a href="#647" id="647">647</a>
<a href="#648" id="648">648</a>
<a href="#649" id="649">649</a>
<a href="#650" id="650">650</a>
<a href="#651" id="651">651</a>
<a href="#652" id="652">652</a>
<a href="#653" id="653">653</a>
<a href="#654" id="654">654</a>
</pre><pre class="rust"><code><span class="comment">// * This file is part of the uutils coreutils package.
// *
// * For the full copyright and license information, please view the LICENSE
@@ -665,21 +659,15 @@
<span class="kw">use </span>uucore::display::Quotable;
<span class="kw">use </span>uucore::error::{FromIo, UError, UResult, USimpleError};
<span class="kw">use </span>uucore::lines::lines;
<span class="kw">use </span>uucore::{format_usage, show};
<span class="kw">use </span>uucore::{format_usage, help_about, help_usage, show};
<span class="kw">const </span>BUF_SIZE: usize = <span class="number">65536</span>;
<span class="doccomment">/// The capacity in bytes for buffered writers.
</span><span class="kw">const </span>BUFWRITER_CAPACITY: usize = <span class="number">16_384</span>; <span class="comment">// 16 kilobytes
</span><span class="kw">const </span>ABOUT: <span class="kw-2">&amp;</span>str = <span class="string">&quot;\
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.\
&quot;</span>;
<span class="kw">const </span>USAGE: <span class="kw-2">&amp;</span>str = <span class="string">&quot;{} [FLAG]... [FILE]...&quot;</span>;
</span><span class="kw">const </span>ABOUT: <span class="kw-2">&amp;</span>str = <span class="macro">help_about!</span>(<span class="string">&quot;head.md&quot;</span>);
<span class="kw">const </span>USAGE: <span class="kw-2">&amp;</span>str = <span class="macro">help_usage!</span>(<span class="string">&quot;head.md&quot;</span>);
<span class="kw">mod </span>options {
<span class="kw">pub const </span>BYTES_NAME: <span class="kw-2">&amp;</span>str = <span class="string">&quot;BYTES&quot;</span>;
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long