1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

Merge pull request #4551 from piotrkwiecinski/expand-move-strings-to-md-files

expand: move help strings to markdown file
This commit is contained in:
Daniel Hofstetter 2023-03-20 08:25:33 +01:00 committed by GitHub
commit 00f506f43d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 4 deletions

8
src/uu/expand/expand.md Normal file
View file

@ -0,0 +1,8 @@
# expand
```
expand [OPTION]... [FILE]...
```
Convert tabs in each `FILE` to spaces, writing to standard output.
With no `FILE`, or when `FILE` is `-`, read standard input.

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, format_usage}; use uucore::{crash, format_usage, help_about, help_usage};
static ABOUT: &str = "Convert tabs in each FILE to spaces, writing to standard output. const ABOUT: &str = help_about!("expand.md");
With no FILE, or when FILE is -, read standard input."; const USAGE: &str = help_usage!("expand.md");
const USAGE: &str = "{} [OPTION]... [FILE]...";
pub mod options { pub mod options {
pub static TABS: &str = "tabs"; pub static TABS: &str = "tabs";