Patch from Charlie Shepherd: remove extra \n from error_exit() arguments.
diff --git a/lib/args.c b/lib/args.c
index 8be84d8..09939fb 100644
--- a/lib/args.c
+++ b/lib/args.c
@@ -81,7 +81,7 @@
 	int type;
 
 	// Did we recognize this option?
-	if (!gof.this && !gof.noerror) error_exit("Unknown option %s\n", gof.arg);
+	if (!gof.this && !gof.noerror) error_exit("Unknown option %s", gof.arg);
 	else toys.optflags |= 1 << gof.this->shift;
 
 	// Does this option take an argument?
diff --git a/main.c b/main.c
index 7a9aea3..ba9dc94 100644
--- a/main.c
+++ b/main.c
@@ -94,7 +94,7 @@
 	if (toys.argv[1]) {
 		if (toys.argv[1][0]!='-') {
 			toy_exec(toys.argv+1);
-			error_exit("Unknown command %s\n",toys.argv[1]);
+			error_exit("Unknown command %s",toys.argv[1]);
 		}
 	}
 
diff --git a/toys/help.c b/toys/help.c
index 4687d0e..ea70a1b 100644
--- a/toys/help.c
+++ b/toys/help.c
@@ -20,7 +20,7 @@
 	int i = t-toy_list;
 	char *s = help_data;
 
-	if (!t) error_exit("Unknown command '%s'\n", *toys.optargs);
+	if (!t) error_exit("Unknown command '%s'", *toys.optargs);
 	for (;;) {
 		while (i--) s += strlen(s) + 1;
 		if (*s != 255) break;