1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-31 13:07:46 +00:00

hostname: move help strings to markdown file

This commit is contained in:
Koki Ueha 2023-03-07 11:00:17 +00:00
parent 199978694a
commit cd709e2650
2 changed files with 10 additions and 3 deletions

View file

@ -0,0 +1,7 @@
# hostname
```
hostname [OPTION]... [HOSTNAME]
```
Display or set the system's host name.

View file

@ -16,11 +16,11 @@ use clap::{crate_version, Arg, ArgAction, ArgMatches, Command};
use uucore::{
error::{FromIo, UResult},
format_usage,
format_usage, help_about, help_usage,
};
static ABOUT: &str = "Display or set the system's host name.";
const USAGE: &str = "{} [OPTION]... [HOSTNAME]";
const ABOUT: &str = help_about!("hostname.md");
const USAGE: &str = help_usage!("hostname.md");
static OPT_DOMAIN: &str = "domain";
static OPT_IP_ADDRESS: &str = "ip-address";