aboutsummaryrefslogtreecommitdiff
path: root/bin/kiss-readlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/kiss-readlink.c')
-rw-r--r--bin/kiss-readlink.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/kiss-readlink.c b/bin/kiss-readlink.c
index 86e1fee..04426f0 100644
--- a/bin/kiss-readlink.c
+++ b/bin/kiss-readlink.c
@@ -4,12 +4,13 @@
// This is basically a 'readlink -f' command.
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
int main(int argc, char *argv[]) {
char buf[512];
- if (argc != 2) {
+ if (argc != 2 || strcmp(argv[1], "--help") == 0) {
printf("usage: %s <file>\n", argv[0]);
return(1);
}