mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
Merge pull request #4797 from m11o/stty-move-strings-to-md-file
stty: move help strings to markdown file
This commit is contained in:
commit
b79465a5e7
2 changed files with 12 additions and 6 deletions
|
@ -18,7 +18,7 @@ use std::ops::ControlFlow;
|
|||
use std::os::unix::fs::OpenOptionsExt;
|
||||
use std::os::unix::io::{AsRawFd, IntoRawFd, RawFd};
|
||||
use uucore::error::{UResult, USimpleError};
|
||||
use uucore::format_usage;
|
||||
use uucore::{format_usage, help_about, help_usage};
|
||||
|
||||
#[cfg(not(any(
|
||||
target_os = "freebsd",
|
||||
|
@ -31,11 +31,8 @@ use uucore::format_usage;
|
|||
use flags::BAUD_RATES;
|
||||
use flags::{CONTROL_FLAGS, INPUT_FLAGS, LOCAL_FLAGS, OUTPUT_FLAGS};
|
||||
|
||||
const USAGE: &str = "\
|
||||
{} [-F DEVICE | --file=DEVICE] [SETTING]...
|
||||
{} [-F DEVICE | --file=DEVICE] [-a|--all]
|
||||
{} [-F DEVICE | --file=DEVICE] [-g|--save]";
|
||||
const SUMMARY: &str = "Print or change terminal characteristics.";
|
||||
const USAGE: &str = help_usage!("stty.md");
|
||||
const SUMMARY: &str = help_about!("stty.md");
|
||||
|
||||
#[derive(Clone, Copy, Debug)]
|
||||
pub struct Flag<T> {
|
||||
|
|
9
src/uu/stty/stty.md
Normal file
9
src/uu/stty/stty.md
Normal file
|
@ -0,0 +1,9 @@
|
|||
# stty
|
||||
|
||||
```
|
||||
stty [-F DEVICE | --file=DEVICE] [SETTING]...
|
||||
stty [-F DEVICE | --file=DEVICE] [-a|--all]
|
||||
stty [-F DEVICE | --file=DEVICE] [-g|--save]
|
||||
```
|
||||
|
||||
Print or change terminal characteristics.
|
Loading…
Add table
Add a link
Reference in a new issue