mirror of
https://github.com/uutils/coreutils
synced 2024-12-14 15:22:38 +00:00
tty: move help strings to markdown file
This commit is contained in:
parent
5d2ea7ada7
commit
1ac31ccfa0
2 changed files with 10 additions and 3 deletions
|
@ -14,10 +14,10 @@ use is_terminal::IsTerminal;
|
||||||
use std::io::Write;
|
use std::io::Write;
|
||||||
use std::os::unix::io::AsRawFd;
|
use std::os::unix::io::AsRawFd;
|
||||||
use uucore::error::{set_exit_code, UResult};
|
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 ABOUT: &str = help_about!("tty.md");
|
||||||
const USAGE: &str = "{} [OPTION]...";
|
const USAGE: &str = help_usage!("tty.md");
|
||||||
|
|
||||||
mod options {
|
mod options {
|
||||||
pub const SILENT: &str = "silent";
|
pub const SILENT: &str = "silent";
|
||||||
|
|
7
src/uu/tty/tty.md
Normal file
7
src/uu/tty/tty.md
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
# tty
|
||||||
|
|
||||||
|
```
|
||||||
|
tty [OPTION]...
|
||||||
|
```
|
||||||
|
|
||||||
|
Print the file name of the terminal connected to standard input.
|
Loading…
Reference in a new issue