commit cf5e3057a3c7b72fc5abf0c58b23da4fb168d19c
Author:     Quentin Rameau <quinq@fifth.space>
AuthorDate: Mon Jul 4 16:46:54 2016 +0200
Commit:     Quentin Rameau <quinq@fifth.space>
CommitDate: Mon Jul 4 20:36:20 2016 +0200

    [driver] process parameters given after -- as operands

diff --git a/driver/posix/scc.c b/driver/posix/scc.c
index f82422a..b7f055c 100644
--- a/driver/posix/scc.c
+++ b/driver/posix/scc.c
@@ -474,9 +474,13 @@ main(int argc, char *argv[])
        default:
                usage();
        } ARGOPERAND {
+operand:
                newitem(&linkchain, ARGOP());
        } ARGEND
 
+       for (; *argv; --argc, ++argv)
+               goto operand;
+
        if (Eflag && (Sflag || kflag) || linkchain.n == 0 ||
            linkchain.n > 1 && cflag && outfile)
                usage();

Reply via email to