mirror of
https://github.com/uutils/coreutils
synced 2024-12-14 07:12:44 +00:00
Merge pull request #4390 from papparapa/yes-move-help-strings-to-md-file
yes: move help strings to markdown file
This commit is contained in:
commit
8678530095
2 changed files with 10 additions and 3 deletions
|
@ -12,13 +12,13 @@ use std::io::{self, Result, Write};
|
|||
|
||||
use clap::{Arg, ArgAction, Command};
|
||||
use uucore::error::{UResult, USimpleError};
|
||||
use uucore::format_usage;
|
||||
use uucore::{format_usage, help_about, help_usage};
|
||||
|
||||
#[cfg(any(target_os = "linux", target_os = "android"))]
|
||||
mod splice;
|
||||
|
||||
const ABOUT: &str = "Repeatedly display a line with STRING (or 'y')";
|
||||
const USAGE: &str = "{} [STRING]...";
|
||||
const ABOUT: &str = help_about!("yes.md");
|
||||
const USAGE: &str = help_usage!("yes.md");
|
||||
|
||||
// it's possible that using a smaller or larger buffer might provide better performance on some
|
||||
// systems, but honestly this is good enough
|
||||
|
|
7
src/uu/yes/yes.md
Normal file
7
src/uu/yes/yes.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
# yes
|
||||
|
||||
```
|
||||
yes [STRING]...
|
||||
```
|
||||
|
||||
Repeatedly display a line with STRING (or 'y')
|
Loading…
Reference in a new issue