summaryrefslogtreecommitdiff
path: root/hostid.c
diff options
context:
space:
mode:
Diffstat (limited to 'hostid.c')
-rw-r--r--hostid.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hostid.c b/hostid.c
index f1010a6..3bf79de 100644
--- a/hostid.c
+++ b/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);
}