mirror of
https://github.com/uutils/coreutils
synced 2024-12-13 23:02:38 +00:00
fold: move move help strings to markdown file
This commit is contained in:
parent
7053543830
commit
96a148b558
2 changed files with 11 additions and 4 deletions
8
src/uu/fold/fold.md
Normal file
8
src/uu/fold/fold.md
Normal file
|
@ -0,0 +1,8 @@
|
|||
# fold
|
||||
|
||||
```
|
||||
fold [OPTION]... [FILE]...
|
||||
```
|
||||
|
||||
Writes each file (or standard input if no files are given)
|
||||
to standard output whilst breaking long lines
|
|
@ -13,13 +13,12 @@ use std::io::{stdin, BufRead, BufReader, Read};
|
|||
use std::path::Path;
|
||||
use uucore::display::Quotable;
|
||||
use uucore::error::{FromIo, UResult, USimpleError};
|
||||
use uucore::format_usage;
|
||||
use uucore::{format_usage, help_about, help_usage};
|
||||
|
||||
const TAB_WIDTH: usize = 8;
|
||||
|
||||
static USAGE: &str = "{} [OPTION]... [FILE]...";
|
||||
static ABOUT: &str = "Writes each file (or standard input if no files are given)
|
||||
to standard output whilst breaking long lines";
|
||||
const USAGE: &str = help_usage!("fold.md");
|
||||
const ABOUT: &str = help_about!("fold.md");
|
||||
|
||||
mod options {
|
||||
pub const BYTES: &str = "bytes";
|
||||
|
|
Loading…
Reference in a new issue