Skip to content

Commit

Permalink
Merge pull request #4704 from piotrkwiecinski/unexpand-move-string-to…
Browse files Browse the repository at this point in the history
…-md-file

unexpand: move help strings to markdown file
  • Loading branch information
cakebaker authored Apr 4, 2023
2 parents 7ad3676 + f920d44 commit 7949778
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/uu/unexpand/src/unexpand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@ use std::str::from_utf8;
use unicode_width::UnicodeWidthChar;
use uucore::display::Quotable;
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]...";
static ABOUT: &str = "Convert blanks in each FILE to tabs, writing to standard output.\n\n\
With no FILE, or when FILE is -, read standard input.";
const USAGE: &str = help_usage!("unexpand.md");
const ABOUT: &str = help_about!("unexpand.md");

const DEFAULT_TABSTOP: usize = 8;

Expand Down
8 changes: 8 additions & 0 deletions src/uu/unexpand/unexpand.md
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit 7949778

Please sign in to comment.