mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
Merge pull request #4430 from jhowww/fmt-move-help-strings-to-md-file
fmt: move help strings to markdown file
This commit is contained in:
commit
ac0b261666
2 changed files with 10 additions and 3 deletions
7
src/uu/fmt/fmt.md
Normal file
7
src/uu/fmt/fmt.md
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
# fmt
|
||||||
|
|
||||||
|
```
|
||||||
|
fmt [OPTION]... [FILE]...
|
||||||
|
```
|
||||||
|
|
||||||
|
Reformat paragraphs from input files (or stdin) to stdout.
|
|
@ -14,7 +14,7 @@ use std::io::{stdin, stdout, Write};
|
||||||
use std::io::{BufReader, BufWriter, Read};
|
use std::io::{BufReader, BufWriter, Read};
|
||||||
use uucore::display::Quotable;
|
use uucore::display::Quotable;
|
||||||
use uucore::error::{FromIo, UResult, USimpleError};
|
use uucore::error::{FromIo, UResult, USimpleError};
|
||||||
use uucore::{format_usage, show_warning};
|
use uucore::{format_usage, help_about, help_usage, show_warning};
|
||||||
|
|
||||||
use self::linebreak::break_lines;
|
use self::linebreak::break_lines;
|
||||||
use self::parasplit::ParagraphStream;
|
use self::parasplit::ParagraphStream;
|
||||||
|
@ -22,8 +22,8 @@ use self::parasplit::ParagraphStream;
|
||||||
mod linebreak;
|
mod linebreak;
|
||||||
mod parasplit;
|
mod parasplit;
|
||||||
|
|
||||||
static ABOUT: &str = "Reformat paragraphs from input files (or stdin) to stdout.";
|
static ABOUT: &str = help_about!("fmt.md");
|
||||||
const USAGE: &str = "{} [OPTION]... [FILE]...";
|
const USAGE: &str = help_usage!("fmt.md");
|
||||||
static MAX_WIDTH: usize = 2500;
|
static MAX_WIDTH: usize = 2500;
|
||||||
|
|
||||||
static OPT_CROWN_MARGIN: &str = "crown-margin";
|
static OPT_CROWN_MARGIN: &str = "crown-margin";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue