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

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
commit 383c6b3caf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 2 deletions

8
src/uu/paste/paste.md Normal file
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.

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)