mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37: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:
commit
383c6b3caf
2 changed files with 12 additions and 2 deletions
8
src/uu/paste/paste.md
Normal file
8
src/uu/paste/paste.md
Normal 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.
|
|
@ -13,9 +13,10 @@ use std::fs::File;
|
||||||
use std::io::{stdin, stdout, BufRead, BufReader, Read, Write};
|
use std::io::{stdin, stdout, BufRead, BufReader, Read, Write};
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
use uucore::error::{FromIo, UResult};
|
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
|
const ABOUT: &str = help_about!("paste.md");
|
||||||
FILE, separated by TABs, to standard output.";
|
const USAGE: &str = help_usage!("paste.md");
|
||||||
|
|
||||||
mod options {
|
mod options {
|
||||||
pub const DELIMITER: &str = "delimiters";
|
pub const DELIMITER: &str = "delimiters";
|
||||||
|
@ -76,6 +77,7 @@ pub fn uu_app() -> Command {
|
||||||
Command::new(uucore::util_name())
|
Command::new(uucore::util_name())
|
||||||
.version(crate_version!())
|
.version(crate_version!())
|
||||||
.about(ABOUT)
|
.about(ABOUT)
|
||||||
|
.override_usage(format_usage(USAGE))
|
||||||
.infer_long_args(true)
|
.infer_long_args(true)
|
||||||
.arg(
|
.arg(
|
||||||
Arg::new(options::SERIAL)
|
Arg::new(options::SERIAL)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue