mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 11:07:44 +00:00
Merge pull request #4453 from schoki040/wc-move-help-strings-to-md-file
wc: move help strings to markdown file
This commit is contained in:
commit
eb21368535
2 changed files with 10 additions and 4 deletions
|
@ -15,7 +15,7 @@ use count_fast::{count_bytes_chars_and_lines_fast, count_bytes_fast};
|
||||||
use countable::WordCountable;
|
use countable::WordCountable;
|
||||||
use unicode_width::UnicodeWidthChar;
|
use unicode_width::UnicodeWidthChar;
|
||||||
use utf8::{BufReadDecoder, BufReadDecoderError};
|
use utf8::{BufReadDecoder, BufReadDecoderError};
|
||||||
use uucore::{format_usage, show};
|
use uucore::{format_usage, help_about, help_usage, show};
|
||||||
use word_count::{TitledWordCount, WordCount};
|
use word_count::{TitledWordCount, WordCount};
|
||||||
|
|
||||||
use clap::{crate_version, Arg, ArgAction, ArgMatches, Command};
|
use clap::{crate_version, Arg, ArgAction, ArgMatches, Command};
|
||||||
|
@ -98,9 +98,8 @@ impl Settings {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static ABOUT: &str = "Display newline, word, and byte counts for each FILE, and a total line if
|
const ABOUT: &str = help_about!("wc.md");
|
||||||
more than one FILE is specified. With no FILE, or when FILE is -, read standard input.";
|
const USAGE: &str = help_usage!("wc.md");
|
||||||
const USAGE: &str = "{} [OPTION]... [FILE]...";
|
|
||||||
|
|
||||||
pub mod options {
|
pub mod options {
|
||||||
pub static BYTES: &str = "bytes";
|
pub static BYTES: &str = "bytes";
|
||||||
|
|
7
src/uu/wc/wc.md
Normal file
7
src/uu/wc/wc.md
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
# wc
|
||||||
|
|
||||||
|
wc [OPTION]... [FILE]...
|
||||||
|
```
|
||||||
|
|
||||||
|
Display newline, word, and byte counts for each FILE, and a total line if
|
||||||
|
more than one FILE is specified. With no FILE, or when FILE is -, read standard input.
|
Loading…
Add table
Add a link
Reference in a new issue