scc

Simple C99 Compiler
Log | Files | Refs | README | LICENSE

commit d61e762f242feac5d89b935b9bf591d0daf986d3
parent 941eee05b2a817286159b9470c683cebd27f2345
Author: Quentin Rameau <quinq@fifth.space>
Date:   Wed,  1 Jun 2016 19:51:04 +0200

[driver] update usage, exit when exclusive flags given

Diffstat:
driver/posix/scc.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/driver/posix/scc.c b/driver/posix/scc.c @@ -194,7 +194,7 @@ build(char *file) static void usage(void) { - die("usage: %s [-m arch] input ..."); + die("usage: %s [-E|-kS] [-m arch] input ...", argv0); } int @@ -228,6 +228,9 @@ main(int argc, char *argv[]) usage(); } ARGEND + if (Eflag && (Sflag || kflag)) + usage(); + if (!argc) die("scc: fatal error: no input files");