diff options
Diffstat (limited to 'coreutils/hostid.c')
-rw-r--r-- | coreutils/hostid.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/coreutils/hostid.c b/coreutils/hostid.c index f1010a6..3bf79de 100644 --- a/coreutils/hostid.c +++ b/coreutils/hostid.c @@ -25,6 +25,9 @@ extern int hostid_main(int argc, char **argv) { + if (argc > 1 && strcmp(argv[1], "--help") == 0) + usage(hostid_usage); + printf("%lx\n", gethostid()); return(TRUE); } |