summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archival/tar.c3
-rw-r--r--tar.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/archival/tar.c b/archival/tar.c
index 86f9965..1b783f0 100644
--- a/archival/tar.c
+++ b/archival/tar.c
@@ -246,6 +246,9 @@ extern int tar_main(int argc, char **argv)
break;
}
#endif
+ if (strcmp(*argv, "-help")==0) {
+ usage(tar_usage);
+ }
break;
default:
diff --git a/tar.c b/tar.c
index 86f9965..1b783f0 100644
--- a/tar.c
+++ b/tar.c
@@ -246,6 +246,9 @@ extern int tar_main(int argc, char **argv)
break;
}
#endif
+ if (strcmp(*argv, "-help")==0) {
+ usage(tar_usage);
+ }
break;
default: