mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
Added description for hostid
This commit is contained in:
parent
87e582b5e0
commit
7e32b6ba17
1 changed files with 2 additions and 0 deletions
|
@ -12,6 +12,7 @@ use libc::c_long;
|
||||||
use uucore::error::UResult;
|
use uucore::error::UResult;
|
||||||
|
|
||||||
static SYNTAX: &str = "[options]";
|
static SYNTAX: &str = "[options]";
|
||||||
|
const SUMMARY: &str = "Print the numeric identifier (in hexadecimal) for the current host";
|
||||||
|
|
||||||
// currently rust libc interface doesn't include gethostid
|
// currently rust libc interface doesn't include gethostid
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -28,6 +29,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
||||||
pub fn uu_app<'a>() -> App<'a> {
|
pub fn uu_app<'a>() -> App<'a> {
|
||||||
App::new(uucore::util_name())
|
App::new(uucore::util_name())
|
||||||
.version(crate_version!())
|
.version(crate_version!())
|
||||||
|
.about(SUMMARY)
|
||||||
.override_usage(SYNTAX)
|
.override_usage(SYNTAX)
|
||||||
.setting(AppSettings::InferLongArgs)
|
.setting(AppSettings::InferLongArgs)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue