summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dimension/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dimension/main.c b/dimension/main.c
index 6e40c08..80bc6e6 100644
--- a/dimension/main.c
+++ b/dimension/main.c
@@ -81,11 +81,12 @@ main(int argc, char **argv)
break;
case '?':
- print_usage(stdout, argv[0]);
/* '?' is returned as an error code too */
if (optopt == 0) {
+ print_usage(stdout, argv[0]);
return EXIT_SUCCESS;
} else {
+ print_usage(stderr, argv[0]);
return EXIT_FAILURE;
}
case DMNSN_OPT_VERSION: