summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmore.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmore.c b/xmore.c
index ed6be29..4ff53f4 100644
--- a/xmore.c
+++ b/xmore.c
@@ -146,6 +146,11 @@ int main( int argc, char *argv[] )
if (argc != 2)
{
+ fputs("Unknown argument(s):", stderr);
+ for (int i = 1; i < argc; i++) {
+ fprintf(stderr, " %s", argv[i]);
+ }
+ fputs("\n\n", stderr);
printf("usage: %s [ x options ] filename\n", argv[0]);
exit(EXIT_FAILURE);
}