| 265 | } |
| 266 | |
| 267 | int wmain(int argc, wchar_t* argv[]) |
| 268 | { |
| 269 | if (argc == 1) |
| 270 | { |
| 271 | std::wcout << L"Usage: EmbedPDB [-f] <file1> [file2] ...\n" |
| 272 | << L" -f Force full file scan for embedded PDB\n" |
| 273 | << L"Drag one or more files (.asi, .dll, .exe, etc.) onto this .exe" << std::endl; |
| 274 | return 0; |
| 275 | } |
| 276 | |
| 277 | bool forceScan = false; |
| 278 | for (int i = 1; i < argc; ++i) |
| 279 | { |
| 280 | std::wstring arg = argv[i]; |
| 281 | if (arg == L"-f" || arg == L"/f") |
| 282 | { |
| 283 | forceScan = true; |
| 284 | continue; |
| 285 | } |
| 286 | ProcessFile(argv[i], forceScan); |
| 287 | } |
| 288 | |
| 289 | return 0; |
| 290 | } |
nothing calls this directly
no test coverage detected