mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
Merge pull request #4552 from piotrkwiecinski/fold-move-strings-to-md-files
fold: move move help strings to markdown file
This commit is contained in:
commit
f056a74432
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 std::path::Path;
|
||||||
use uucore::display::Quotable;
|
use uucore::display::Quotable;
|
||||||
use uucore::error::{FromIo, UResult, USimpleError};
|
use uucore::error::{FromIo, UResult, USimpleError};
|
||||||
use uucore::format_usage;
|
use uucore::{format_usage, help_about, help_usage};
|
||||||
|
|
||||||
const TAB_WIDTH: usize = 8;
|
const TAB_WIDTH: usize = 8;
|
||||||
|
|
||||||
static USAGE: &str = "{} [OPTION]... [FILE]...";
|
const USAGE: &str = help_usage!("fold.md");
|
||||||
static ABOUT: &str = "Writes each file (or standard input if no files are given)
|
const ABOUT: &str = help_about!("fold.md");
|
||||||
to standard output whilst breaking long lines";
|
|
||||||
|
|
||||||
mod options {
|
mod options {
|
||||||
pub const BYTES: &str = "bytes";
|
pub const BYTES: &str = "bytes";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue