diff options
Diffstat (limited to 'src/factor.c')
-rw-r--r-- | src/factor.c | 7 |
1 files changed, 7 insertions, 0 deletions
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) |