mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-31 13:07:46 +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:
commit
093e15766f
2 changed files with 10 additions and 3 deletions
7
src/uu/hostname/hostname.md
Normal file
7
src/uu/hostname/hostname.md
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
# hostname
|
||||||
|
|
||||||
|
```
|
||||||
|
hostname [OPTION]... [HOSTNAME]
|
||||||
|
```
|
||||||
|
|
||||||
|
Display or set the system's host name.
|
|
@ -16,11 +16,11 @@ use clap::{crate_version, Arg, ArgAction, ArgMatches, Command};
|
||||||
|
|
||||||
use uucore::{
|
use uucore::{
|
||||||
error::{FromIo, UResult},
|
error::{FromIo, UResult},
|
||||||
format_usage,
|
format_usage, help_about, help_usage,
|
||||||
};
|
};
|
||||||
|
|
||||||
static ABOUT: &str = "Display or set the system's host name.";
|
const ABOUT: &str = help_about!("hostname.md");
|
||||||
const USAGE: &str = "{} [OPTION]... [HOSTNAME]";
|
const USAGE: &str = help_usage!("hostname.md");
|
||||||
|
|
||||||
static OPT_DOMAIN: &str = "domain";
|
static OPT_DOMAIN: &str = "domain";
|
||||||
static OPT_IP_ADDRESS: &str = "ip-address";
|
static OPT_IP_ADDRESS: &str = "ip-address";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue