From 99571c629e1c4b58bdb5071c54c897d3d239e685 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 3 May 1999 02:42:49 +0000 Subject: (main): Manually handle `--', since we no longer call getopt. --- src/factor.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/factor.c') diff --git a/src/factor.c b/src/factor.c index dd696e5e4..9cf96c647 100644 --- a/src/factor.c +++ b/src/factor.c @@ -183,6 +183,13 @@ main (int argc, char **argv) parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION, AUTHORS, usage); + /* The above handles --help and --version. + Since there is no other invocation of getopt, handle `--' here. */ + if (argc > 1 && STREQ (argv[1], "--")) + { + --argc; + ++argv; + } fail = 0; if (argc == 1) -- cgit v1.2.3-54-g00ecf