Merge pull request #4426 from papparapa/tail-move-help-strings-md-file

tail: move help strings to markdown file
This commit is contained in:
Sylvestre Ledru 2023-02-23 21:56:39 +01:00 committed by GitHub
commit 1ab1035b40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 9 deletions

View file

@ -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
View 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.