mirror of
https://github.com/uutils/coreutils
synced 2024-10-15 04:14:44 +00:00
tee: move help strings to markdown file
This commit is contained in:
parent
3554565c82
commit
c3817e5359
|
@ -11,15 +11,16 @@ use std::io::{copy, sink, stdin, stdout, Error, ErrorKind, Read, Result, Write};
|
|||
use std::path::PathBuf;
|
||||
use uucore::display::Quotable;
|
||||
use uucore::error::UResult;
|
||||
use uucore::{format_usage, show_error};
|
||||
use uucore::{format_usage, help_about, help_section, help_usage, show_error};
|
||||
|
||||
// spell-checker:ignore nopipe
|
||||
|
||||
#[cfg(unix)]
|
||||
use uucore::libc;
|
||||
|
||||
static ABOUT: &str = "Copy standard input to each FILE, and also to standard output.";
|
||||
const USAGE: &str = "{} [OPTION]... [FILE]...";
|
||||
const ABOUT: &str = help_about!("tee.md");
|
||||
const USAGE: &str = help_usage!("tee.md");
|
||||
const AFTER_HELP: &str = help_section!("after help", "tee.md");
|
||||
|
||||
mod options {
|
||||
pub const APPEND: &str = "append";
|
||||
|
@ -88,7 +89,7 @@ pub fn uu_app() -> Command {
|
|||
.version(crate_version!())
|
||||
.about(ABOUT)
|
||||
.override_usage(format_usage(USAGE))
|
||||
.after_help("If a FILE is -, it refers to a file named - .")
|
||||
.after_help(AFTER_HELP)
|
||||
.infer_long_args(true)
|
||||
.arg(
|
||||
Arg::new(options::APPEND)
|
||||
|
|
11
src/uu/tee/tee.md
Normal file
11
src/uu/tee/tee.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
# tee
|
||||
|
||||
```
|
||||
tee [OPTION]... [FILE]...
|
||||
```
|
||||
|
||||
Copy standard input to each FILE, and also to standard output.
|
||||
|
||||
## After Help
|
||||
|
||||
If a FILE is -, it refers to a file named - .
|
Loading…
Reference in a new issue