ref: 78a3985267805daa0b8106101b0b7f53ab51590e
parent: 18b97e92164b317b6d8f846912b3f043745ed479
author: Quentin Rameau <[email protected]>
date: Wed Jun 1 15:51:04 EDT 2016
[driver] update usage, exit when exclusive flags given
--- a/driver/posix/scc.c
+++ b/driver/posix/scc.c
@@ -194,7 +194,7 @@
static void
usage(void)
{
- die("usage: %s [-m arch] input ...");
+ die("usage: %s [-E|-kS] [-m arch] input ...", argv0);
}
int
@@ -227,6 +227,9 @@
default:
usage();
} ARGEND
+
+ if (Eflag && (Sflag || kflag))
+ usage();
if (!argc)
die("scc: fatal error: no input files");