1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-30 12:37:49 +00:00

Merge pull request #4473 from papparapa/hostname-move-help-strings-to-md-file

hostname: move help strings to markdown file
This commit is contained in:
Terts Diepraam 2023-03-07 15:44:55 +01:00 committed by GitHub
commit 093e15766f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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";