'tar --help' wasn't working. Fixed it.
authorEric Andersen <andersen@codepoet.org>
Wed, 21 Jun 2000 18:37:36 +0000 (18:37 -0000)
committerEric Andersen <andersen@codepoet.org>
Wed, 21 Jun 2000 18:37:36 +0000 (18:37 -0000)
 -Erik

archival/tar.c
tar.c

index 86f996576d8848b336f554ab3f450e3566a1a158..1b783f0f5ed3a6b56d42a92d715d787654d25c79 100644 (file)
@@ -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 86f996576d8848b336f554ab3f450e3566a1a158..1b783f0f5ed3a6b56d42a92d715d787654d25c79 100644 (file)
--- 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: