mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
Merge pull request #4837 from m11o/tty-move-strings-to-md-file
tty: move help strings to markdown file
This commit is contained in:
@@ -14,10 +14,10 @@ use is_terminal::IsTerminal;
|
||||
use std::io::Write;
|
||||
use std::os::unix::io::AsRawFd;
|
||||
use uucore::error::{set_exit_code, UResult};
|
||||
use uucore::format_usage;
|
||||
use uucore::{format_usage, help_about, help_usage};
|
||||
|
||||
static ABOUT: &str = "Print the file name of the terminal connected to standard input.";
|
||||
const USAGE: &str = "{} [OPTION]...";
|
||||
const ABOUT: &str = help_about!("tty.md");
|
||||
const USAGE: &str = help_usage!("tty.md");
|
||||
|
||||
mod options {
|
||||
pub const SILENT: &str = "silent";
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
# tty
|
||||
|
||||
```
|
||||
tty [OPTION]...
|
||||
```
|
||||
|
||||
Print the file name of the terminal connected to standard input.
|
||||
Reference in New Issue
Block a user