aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index ed24287..0a5d6ba 100644
--- a/src/main.c
+++ b/src/main.c
@@ -111,6 +111,9 @@ static void usage(char *progname) {
if (long_options[x].val <= 'z') {
strcat(opt_short, "-");
opt_short[1] = (char) long_options[x].val;
+ if (long_options[x].has_arg) {
+ strcat(opt_short, " ARG");
+ }
} else {
strcat(opt_short, " ");
}