Merge pull request #4650 from piotrkwiecinski/paste-move-string-to-md-file

paste: move help strings to markdown file
This commit is contained in:
Sylvestre Ledru
2023-03-27 21:25:41 +02:00
committed by GitHub
2 changed files with 12 additions and 2 deletions
+8
View File
@@ -0,0 +1,8 @@
# paste
```
paste [OPTIONS] [FILE]...
```
Write lines consisting of the sequentially corresponding lines from each
`FILE`, separated by `TAB`s, to standard output.
+4 -2
View File
@@ -13,9 +13,10 @@ use std::fs::File;
use std::io::{stdin, stdout, BufRead, BufReader, Read, Write};
use std::path::Path;
use uucore::error::{FromIo, UResult};
use uucore::{format_usage, help_about, help_usage};
static ABOUT: &str = "Write lines consisting of the sequentially corresponding lines from each
FILE, separated by TABs, to standard output.";
const ABOUT: &str = help_about!("paste.md");
const USAGE: &str = help_usage!("paste.md");
mod options {
pub const DELIMITER: &str = "delimiters";
@@ -76,6 +77,7 @@ pub fn uu_app() -> Command {
Command::new(uucore::util_name())
.version(crate_version!())
.about(ABOUT)
.override_usage(format_usage(USAGE))
.infer_long_args(true)
.arg(
Arg::new(options::SERIAL)