From 55faed6a1cdc906cdd7f5c81b155810d3d949ecc Mon Sep 17 00:00:00 2001 From: midipix Date: Nov 11 2016 05:22:33 +0000 Subject: argv.h: argv_show_error(): prefix illegal short options with a dash. --- diff --git a/src/internal/argv/argv.h b/src/internal/argv/argv.h index e0cc5f3..fd0c3ac 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: