mirror of
https://github.com/uutils/coreutils
synced 2024-12-13 14:52:41 +00:00
Merge pull request #4799 from m11o/sum-move-strings-to-md-file
sum: move help strings to markdown file
This commit is contained in:
commit
27d6e4c6e3
2 changed files with 12 additions and 4 deletions
|
@ -13,11 +13,10 @@ use std::io::{stdin, Read};
|
|||
use std::path::Path;
|
||||
use uucore::display::Quotable;
|
||||
use uucore::error::{FromIo, UResult, USimpleError};
|
||||
use uucore::{format_usage, show};
|
||||
use uucore::{format_usage, help_about, help_usage, show};
|
||||
|
||||
static USAGE: &str = "{} [OPTION]... [FILE]...";
|
||||
static ABOUT: &str = "Checksum and count the blocks in a file.\n\n\
|
||||
With no FILE, or when FILE is -, read standard input.";
|
||||
const USAGE: &str = help_usage!("sum.md");
|
||||
const ABOUT: &str = help_about!("sum.md");
|
||||
|
||||
// This can be replaced with usize::div_ceil once it is stabilized.
|
||||
// This implementation approach is optimized for when `b` is a constant,
|
||||
|
|
9
src/uu/sum/sum.md
Normal file
9
src/uu/sum/sum.md
Normal file
|
@ -0,0 +1,9 @@
|
|||
# sum
|
||||
|
||||
```
|
||||
sum [OPTION]... [FILE]..."
|
||||
```
|
||||
|
||||
Checksum and count the blocks in a file.
|
||||
|
||||
With no FILE, or when FILE is -, read standard input.
|
Loading…
Reference in a new issue