Skip to content

Commit d10e359

Browse files
committed
Add hints for changes to GNU-style
1 parent 882d532 commit d10e359

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

Texconv/texconv.cpp

+29
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,26 @@ namespace
301301
{ nullptr, 0 }
302302
};
303303

304+
const SValue<const wchar_t*> g_pOptionsOld[] =
305+
{
306+
{ L"badtails", L"bad-tails" },
307+
{ L"fixbc4x4", L"fix-bc-4x4" },
308+
{ L"ignoremips", L"ignore-mips" },
309+
{ L"inverty", L"invert-y" },
310+
{ L"keepcoverage", L"keep-coverage" },
311+
{ L"permissive", L"permissive" },
312+
{ L"reconstructz", L"reconstruct-z" },
313+
{ L"rotatecolor", L"rotate-color" },
314+
{ L"singleproc", L"single-proc" },
315+
{ L"swizzle", L"swizzle" },
316+
{ L"tgazeroalpha", L"tga-zero-alpha" },
317+
{ L"timing", L"timing" },
318+
{ L"tonemap", L"tonemap" },
319+
{ L"wiclossless", L"wic-lossless" },
320+
{ L"wicmulti", L"wic-multiframe" },
321+
{ L"x2bias", L"x2-bias" },
322+
};
323+
304324
#define DEFFMT(fmt) { L## #fmt, DXGI_FORMAT_ ## fmt }
305325

306326
const SValue<DXGI_FORMAT> g_pFormats[] =
@@ -1314,6 +1334,15 @@ int __cdecl wmain(_In_ int argc, _In_z_count_(argc) wchar_t* argv[])
13141334
wprintf(L"ERROR: did you mean `--%ls` (with two dashes)?\n", pArg);
13151335
return 1;
13161336
}
1337+
else
1338+
{
1339+
auto hint = LookupByName(pArg, g_pOptionsOld);
1340+
if (hint)
1341+
{
1342+
wprintf(L"ERROR: use `--%ls` (with two dashes) instead\n", hint);
1343+
return 1;
1344+
}
1345+
}
13171346
}
13181347
}
13191348

0 commit comments

Comments
 (0)