|
646 | 646 | <a href="#646" id="646">646</a>
|
647 | 647 | <a href="#647" id="647">647</a>
|
648 | 648 | <a href="#648" id="648">648</a>
|
649 |
| -<a href="#649" id="649">649</a> |
650 |
| -<a href="#650" id="650">650</a> |
651 |
| -<a href="#651" id="651">651</a> |
652 |
| -<a href="#652" id="652">652</a> |
653 |
| -<a href="#653" id="653">653</a> |
654 |
| -<a href="#654" id="654">654</a> |
655 | 649 | </pre><pre class="rust"><code><span class="comment">// * This file is part of the uutils coreutils package.
|
656 | 650 | // *
|
657 | 651 | // * For the full copyright and license information, please view the LICENSE
|
|
665 | 659 | <span class="kw">use </span>uucore::display::Quotable;
|
666 | 660 | <span class="kw">use </span>uucore::error::{FromIo, UError, UResult, USimpleError};
|
667 | 661 | <span class="kw">use </span>uucore::lines::lines;
|
668 |
| -<span class="kw">use </span>uucore::{format_usage, show}; |
| 662 | +<span class="kw">use </span>uucore::{format_usage, help_about, help_usage, show}; |
669 | 663 |
|
670 | 664 | <span class="kw">const </span>BUF_SIZE: usize = <span class="number">65536</span>;
|
671 | 665 |
|
672 | 666 | <span class="doccomment">/// The capacity in bytes for buffered writers.
|
673 | 667 | </span><span class="kw">const </span>BUFWRITER_CAPACITY: usize = <span class="number">16_384</span>; <span class="comment">// 16 kilobytes
|
674 | 668 |
|
675 |
| -</span><span class="kw">const </span>ABOUT: <span class="kw-2">&</span>str = <span class="string">"\ |
676 |
| - Print the first 10 lines of each FILE to standard output.\n\ |
677 |
| - With more than one FILE, precede each with a header giving the file name.\n\ |
678 |
| - With no FILE, or when FILE is -, read standard input.\n\ |
679 |
| - \n\ |
680 |
| - Mandatory arguments to long flags are mandatory for short flags too.\ |
681 |
| - "</span>; |
682 |
| -<span class="kw">const </span>USAGE: <span class="kw-2">&</span>str = <span class="string">"{} [FLAG]... [FILE]..."</span>; |
| 669 | +</span><span class="kw">const </span>ABOUT: <span class="kw-2">&</span>str = <span class="macro">help_about!</span>(<span class="string">"head.md"</span>); |
| 670 | +<span class="kw">const </span>USAGE: <span class="kw-2">&</span>str = <span class="macro">help_usage!</span>(<span class="string">"head.md"</span>); |
683 | 671 |
|
684 | 672 | <span class="kw">mod </span>options {
|
685 | 673 | <span class="kw">pub const </span>BYTES_NAME: <span class="kw-2">&</span>str = <span class="string">"BYTES"</span>;
|
|
0 commit comments