mirror of
https://github.com/uutils/coreutils
synced 2024-12-13 14:52:41 +00:00
sum: move help strings to markdown file
This commit is contained in:
parent
b33986de86
commit
3ca1fa8dfd
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