| 830 | } |
| 831 | |
| 832 | int wmain( |
| 833 | int argc, |
| 834 | wchar_t** argv) |
| 835 | { |
| 836 | // Parse command line arguments |
| 837 | std::vector<Filter> providerIds; |
| 838 | std::vector<Filter> eventIds; |
| 839 | wchar_t* etlFile = nullptr; |
| 840 | auto sortByName = false; |
| 841 | auto sortByGuid = false; |
| 842 | auto showKeywords = true; |
| 843 | auto showLevels = true; |
| 844 | auto showChannels = true; |
| 845 | auto showEvents = true; |
| 846 | auto showEventStructs = true; |
| 847 | auto showPropertyEnums = true; |
| 848 | for (int i = 1; i < argc; ++i) { |
| 849 | if (wcsncmp(argv[i], L"--etl=", 6) == 0) { |
| 850 | etlFile = argv[i] + 6; |
| 851 | continue; |
| 852 | } |
| 853 | |
| 854 | if (wcsncmp(argv[i], L"--provider=", 11) == 0) { |
| 855 | providerIds.emplace_back(argv[i] + 11); |
| 856 | continue; |
| 857 | } |
| 858 | |
| 859 | if (wcsncmp(argv[i], L"--event=", 8) == 0) { |
| 860 | eventIds.emplace_back(argv[i] + 8); |
| 861 | continue; |
| 862 | } |
| 863 | |
| 864 | if (wcscmp(argv[i], L"--sort=guid") == 0) { |
| 865 | sortByName = false; |
| 866 | sortByGuid = true; |
| 867 | continue; |
| 868 | } |
| 869 | |
| 870 | if (wcscmp(argv[i], L"--sort=name") == 0) { |
| 871 | sortByName = true; |
| 872 | sortByGuid = false; |
| 873 | continue; |
| 874 | } |
| 875 | |
| 876 | if (wcscmp(argv[i], L"--no_keywords") == 0) { |
| 877 | showKeywords = false; |
| 878 | continue; |
| 879 | } |
| 880 | |
| 881 | if (wcscmp(argv[i], L"--no_levels") == 0) { |
| 882 | showLevels = false; |
| 883 | continue; |
| 884 | } |
| 885 | |
| 886 | if (wcscmp(argv[i], L"--no_channels") == 0) { |
| 887 | showChannels = false; |
| 888 | continue; |
| 889 | } |
nothing calls this directly
no test coverage detected