stty: move help strings to markdown file

This commit is contained in:
m11o
2023-04-27 22:14:52 +09:00
parent eb8f353a2f
commit c49769865a
2 changed files with 12 additions and 6 deletions
+3 -6
View File
@@ -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_usage, help_about};
#[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
View 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.