shithub: scc

Download patch

ref: 24b2c0e20c9d5b98a179dec81e0f48fe8bbb5034
parent: 6853b1e9d0763d49d00264f9c1cd3edc25c3299b
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Mon Oct 7 16:19:52 EDT 2019

[cc] Simplify usage message

So long usage messages don't make any sense. If you want a man
page you know where to find it.

--- a/src/cmd/cc/posix/cc.c
+++ b/src/cmd/cc/posix/cc.c
@@ -505,15 +505,7 @@
 static void
 usage(void)
 {
-	fputs("usage: scc [-D def[=val]]... [-U def]... [-I dir]... "
-	       "[-L dir]... [-l dir]...\n"
-	       "           [-dgksw] [-m arch] [-M|-E|-S] [-o outfile] file...\n"
-	       "       scc [-D def[=val]]... [-U def]... [-I dir]... "
-	       "[-L dir]... [-l dir]...\n"
-	       "           [-dgksw] [-m arch] [-M|-E|-S] -c file...\n"
-	       "       scc [-D def[=val]]... [-U def]... [-I dir]... "
-	       "[-L dir]... [-l dir]...\n"
-	       "           [-dgksw] [-m arch] -c -o outfile file\n", stderr);
+	fputs("usage: cc [options] file...\n", stderr);
 	exit(1);
 }