summaryrefslogtreecommitdiff
path: root/src/internal/argv
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-01-03 10:05:56 -0500
committermidipix <writeonce@midipix.org>2016-01-03 10:05:56 -0500
commit9a57dbb676e079b4959db1cdeff5f480feb66217 (patch)
tree580c210f5035c9054172cb8bb402621f469f7912 /src/internal/argv
parent134b58676d1cde48202de4ec19f7cd34f7f2802c (diff)
downloadsofort-9a57dbb676e079b4959db1cdeff5f480feb66217.tar.bz2
sofort-9a57dbb676e079b4959db1cdeff5f480feb66217.tar.xz
argv.h: argv_show_error(): prefix illegal short options with a dash.
Diffstat (limited to 'src/internal/argv')
-rw-r--r--src/internal/argv/argv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/internal/argv/argv.h b/src/internal/argv/argv.h
index 903c502..fa79e5f 100644
--- a/src/internal/argv/argv.h
+++ b/src/internal/argv/argv.h
@@ -478,7 +478,7 @@ static void argv_show_error(struct argv_ctx * ctx)
switch (ctx->errcode) {
case ARGV_ERROR_SHORT_OPTION:
- fprintf(stderr,"'%c' is not a valid short option\n",*ctx->errch);
+ fprintf(stderr,"'-%c' is not a valid short option\n",*ctx->errch);
break;
case ARGV_ERROR_LONG_OPTION: