diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-03-11 09:37:22 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-03-11 09:37:22 -0400 |
commit | b7785ede614064cce7d130542cd840a72231f2c1 (patch) | |
tree | ba65fc1fcc9dc3b987086baa67fa42e4553bb014 /src/main.c | |
parent | 4250d9bcfcf9dbc95418c64932ad39f71ff2019e (diff) | |
download | stasis-b7785ede614064cce7d130542cd840a72231f2c1.tar.gz |
Prevent printing non-existent short options in usage statement
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -89,7 +89,7 @@ static void usage(char *progname) { printf("usage: %s ", progname); printf("[-"); for (int x = 0; long_options[x].val != 0; x++) { - if (long_options[x].has_arg == no_argument) { + if (long_options[x].has_arg == no_argument && long_options[x].val <= 'z') { putchar(long_options[x].val); } } |