From ba01709da8c69d8b8f83aef5d9df05b25c92e0aa Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 15 Jun 2004 18:04:13 +0000 Subject: (main): Recognize --help, --version even if POSIXLY_CORRECT. POSIX does not specify any options, but it does not prohibit options either, so "unlink" is like "expr" here. --- src/unlink.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/unlink.c') diff --git a/src/unlink.c b/src/unlink.c index ba38b64a4..30ac2152f 100644 --- a/src/unlink.c +++ b/src/unlink.c @@ -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. */ -- cgit v1.2.3-54-g00ecf