unexpand: move help strings to markdown file

This commit is contained in:
Piotr Kwiecinski 2023-04-03 17:06:58 +02:00
parent 0c1feb51ff
commit f920d44e62
2 changed files with 11 additions and 4 deletions

View file

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

View 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.