mirror of
https://github.com/uutils/coreutils
synced 2024-12-14 15:22:38 +00:00
tail: move help strings to markdown file
This commit is contained in:
parent
60d2df56de
commit
58dae0a36d
2 changed files with 14 additions and 9 deletions
|
@ -17,16 +17,10 @@ use std::ffi::OsString;
|
|||
use std::time::Duration;
|
||||
use uucore::error::{UResult, USimpleError, UUsageError};
|
||||
use uucore::parse_size::{parse_size, ParseSizeError};
|
||||
use uucore::{format_usage, show_warning};
|
||||
use uucore::{format_usage, help_about, help_usage, show_warning};
|
||||
|
||||
const ABOUT: &str = "\
|
||||
Print the last 10 lines of each FILE to standard output.\n\
|
||||
With more than one FILE, precede each with a header giving the file name.\n\
|
||||
With no FILE, or when FILE is -, read standard input.\n\
|
||||
\n\
|
||||
Mandatory arguments to long flags are mandatory for short flags too.\
|
||||
";
|
||||
const USAGE: &str = "{} [FLAG]... [FILE]...";
|
||||
const ABOUT: &str = help_about!("tail.md");
|
||||
const USAGE: &str = help_usage!("tail.md");
|
||||
|
||||
pub mod options {
|
||||
pub mod verbosity {
|
||||
|
|
11
src/uu/tail/tail.md
Normal file
11
src/uu/tail/tail.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
# tail
|
||||
|
||||
```
|
||||
tail [FLAG]... [FILE]...
|
||||
```
|
||||
|
||||
Print the last 10 lines of each FILE to standard output.
|
||||
With more than one FILE, precede each with a header giving the file name.
|
||||
With no FILE, or when FILE is -, read standard input.
|
||||
|
||||
Mandatory arguments to long flags are mandatory for short flags too.
|
Loading…
Reference in a new issue