mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-30 12:37:49 +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 std::time::Duration;
|
||||||
use uucore::error::{UResult, USimpleError, UUsageError};
|
use uucore::error::{UResult, USimpleError, UUsageError};
|
||||||
use uucore::parse_size::{parse_size, ParseSizeError};
|
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 = "\
|
const ABOUT: &str = help_about!("tail.md");
|
||||||
Print the last 10 lines of each FILE to standard output.\n\
|
const USAGE: &str = help_usage!("tail.md");
|
||||||
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]...";
|
|
||||||
|
|
||||||
pub mod options {
|
pub mod options {
|
||||||
pub mod verbosity {
|
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…
Add table
Add a link
Reference in a new issue