diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-11-26 09:35:11 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-11-26 09:35:11 +0100 |
commit | c9658d930016519e0b44ac284e7414292267e57d (patch) | |
tree | 21796818f70ad80198e63eea2e9e167db50616e0 /src/libopts | |
parent | edc7f26379741687c135175b3fac9d594d316bd7 (diff) | |
download | gnutls-c9658d930016519e0b44ac284e7414292267e57d.tar.gz |
Added hack to print the parameters correctly in windows.
Diffstat (limited to 'src/libopts')
-rw-r--r-- | src/libopts/usage.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libopts/usage.c b/src/libopts/usage.c index ebdc46ae86..52a271ae06 100644 --- a/src/libopts/usage.c +++ b/src/libopts/usage.c @@ -782,6 +782,13 @@ prt_one_usage(tOptions * pOptions, tOptDesc * pOD, arg_types_t * pAT) default: goto bogus_desc; } +#ifdef _WIN32 + if (pAT->pzOptFmt == zGnuOptFmt) + snprintf(z, sizeof(z), "--%s%s", pOD->pz_Name, pzArgType); + else if (pAT->pzOptFmt == zGnuOptFmt + 2) + snprintf(z, sizeof(z), "%s%s", pOD->pz_Name, pzArgType); + else +#endif snprintf(z, sizeof(z), pAT->pzOptFmt, pzArgType, pOD->pz_Name, (pOD->optMinCt != 0) ? pAT->pzReq : pAT->pzOpt); |