fold: move move help strings to markdown file

This commit is contained in:
Piotr Kwiecinski 2023-03-19 13:18:03 +01:00
parent 7053543830
commit 96a148b558
2 changed files with 11 additions and 4 deletions

8
src/uu/fold/fold.md Normal file
View 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

View file

@ -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";