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:
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::{
|
||||
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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue