@@ -301,6 +301,26 @@ namespace
301
301
{ nullptr , 0 }
302
302
};
303
303
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
+
304
324
#define DEFFMT (fmt ) { L## #fmt, DXGI_FORMAT_ ## fmt }
305
325
306
326
const SValue<DXGI_FORMAT> g_pFormats[] =
@@ -1314,6 +1334,15 @@ int __cdecl wmain(_In_ int argc, _In_z_count_(argc) wchar_t* argv[])
1314
1334
wprintf (L" ERROR: did you mean `--%ls` (with two dashes)?\n " , pArg);
1315
1335
return 1 ;
1316
1336
}
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
+ }
1317
1346
}
1318
1347
}
1319
1348
0 commit comments