summary refs log tree commit diff
path: root/bin/hi.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--bin/hi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/hi.c b/bin/hi.c
index 6fab0a59..444e867a 100644
--- a/bin/hi.c
+++ b/bin/hi.c
@@ -679,7 +679,7 @@ int main(int argc, char *argv[]) {
 				while (optarg[0]) {
 					key = getsubopt(&optarg, (char *const *)OptionKey, &val);
 					if (key >= OptionLen) {
-						errx(EX_USAGE, "no such option %s", suboptarg);
+						errx(EX_USAGE, "no such option %s", val);
 					}
 					opts[key] = (val ? val : "");
 				}