mirror of
https://github.com/uutils/coreutils
synced 2024-12-15 07:42:48 +00:00
unexpand: move help strings to markdown file
This commit is contained in:
parent
0c1feb51ff
commit
f920d44e62
2 changed files with 11 additions and 4 deletions
|
@ -19,11 +19,10 @@ use std::str::from_utf8;
|
||||||
use unicode_width::UnicodeWidthChar;
|
use unicode_width::UnicodeWidthChar;
|
||||||
use uucore::display::Quotable;
|
use uucore::display::Quotable;
|
||||||
use uucore::error::{FromIo, UError, UResult};
|
use uucore::error::{FromIo, UError, UResult};
|
||||||
use uucore::{crash, crash_if_err, format_usage};
|
use uucore::{crash, crash_if_err, format_usage, help_about, help_usage};
|
||||||
|
|
||||||
static USAGE: &str = "{} [OPTION]... [FILE]...";
|
const USAGE: &str = help_usage!("unexpand.md");
|
||||||
static ABOUT: &str = "Convert blanks in each FILE to tabs, writing to standard output.\n\n\
|
const ABOUT: &str = help_about!("unexpand.md");
|
||||||
With no FILE, or when FILE is -, read standard input.";
|
|
||||||
|
|
||||||
const DEFAULT_TABSTOP: usize = 8;
|
const DEFAULT_TABSTOP: usize = 8;
|
||||||
|
|
||||||
|
|
8
src/uu/unexpand/unexpand.md
Normal file
8
src/uu/unexpand/unexpand.md
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
# unexpand
|
||||||
|
|
||||||
|
```
|
||||||
|
unexpand [OPTION]... [FILE]...
|
||||||
|
```
|
||||||
|
|
||||||
|
Convert blanks in each `FILE` to tabs, writing to standard output.
|
||||||
|
With no `FILE`, or when `FILE` is `-`, read standard input.
|
Loading…
Reference in a new issue