aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2020-04-21 10:31:33 -0700
committerMichael Forney <mforney@mforney.org>2020-04-21 10:32:52 -0700
commit5ed26f909dd923dcd811784bc88efa46ad57bb30 (patch)
treefcd57a11d4e696723c9aaae9dc4d1760b5e7767b
parent5cee758069a44bc8f656eeae054c19393b7381ee (diff)
downloadcproc-5ed26f909dd923dcd811784bc88efa46ad57bb30.tar.xz
driver: Print unknown option before usage message
-rw-r--r--driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver.c b/driver.c
index bcdfccd..39fcc7b 100644
--- a/driver.c
+++ b/driver.c
@@ -547,7 +547,7 @@ main(int argc, char *argv[])
usage("unknown language '%s'", arg);
break;
default:
- usage(NULL);
+ usage("unknown option '%s'", arg);
}
}
}