(main): Recognize --help, --version even if
authorJim Meyering <jim@meyering.net>
Tue, 15 Jun 2004 18:04:13 +0000 (18:04 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 15 Jun 2004 18:04:13 +0000 (18:04 +0000)
POSIXLY_CORRECT.  POSIX does not specify any options, but it
does not prohibit options either, so "unlink" is like "expr" here.

src/unlink.c

index ba38b64..30ac215 100644 (file)
@@ -71,10 +71,8 @@ main (int argc, char **argv)
 
   atexit (close_stdout);
 
-  /* Don't recognize --help or --version if POSIXLY_CORRECT is set.  */
-  if (getenv ("POSIXLY_CORRECT") == NULL)
-    parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
-                       usage, AUTHORS, (char const *) NULL);
+  parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
+                     usage, AUTHORS, (char const *) NULL);
 
   /* The above handles --help and --version.
      Since there is no other invocation of getopt, handle `--' here.  */