mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
Merge pull request #4575 from piotrkwiecinski/hostid-move-string-to-md-file
hostid: move help strings to markdown file
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
# hostid
|
||||
|
||||
```
|
||||
hostid [options]
|
||||
```
|
||||
|
||||
Print the numeric identifier (in hexadecimal) for the current host
|
||||
@@ -9,10 +9,10 @@
|
||||
|
||||
use clap::{crate_version, Command};
|
||||
use libc::c_long;
|
||||
use uucore::{error::UResult, format_usage};
|
||||
use uucore::{error::UResult, format_usage, help_about, help_usage};
|
||||
|
||||
const USAGE: &str = "{} [options]";
|
||||
const ABOUT: &str = "Print the numeric identifier (in hexadecimal) for the current host";
|
||||
const USAGE: &str = help_usage!("hostid.md");
|
||||
const ABOUT: &str = help_about!("hostid.md");
|
||||
|
||||
// currently rust libc interface doesn't include gethostid
|
||||
extern "C" {
|
||||
|
||||
Reference in New Issue
Block a user