projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add usage messages for applets without them.
[oweals/busybox.git]
/
coreutils
/
hostid.c
diff --git
a/coreutils/hostid.c
b/coreutils/hostid.c
index f1010a65d524fa11301801018d22a7138478b3e6..3bf79de473fef8df7895754fc4d51147000fc9e5 100644
(file)
--- 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);
}