| 23 | |
| 24 | |
| 25 | int main(int argc, char **argv) { |
| 26 | LIEF::logging::set_level(LIEF::logging::LEVEL::DEBUG); |
| 27 | if (argc != 2) { |
| 28 | std::cerr << "Usage: " << argv[0] << " <DEX file>" << '\n'; |
| 29 | return EXIT_FAILURE; |
| 30 | } |
| 31 | |
| 32 | if (std::unique_ptr<const File> file = LIEF::DEX::Parser::parse(argv[1])) { |
| 33 | std::cout << *file << "\n"; |
| 34 | return EXIT_SUCCESS; |
| 35 | } |
| 36 | |
| 37 | return EXIT_FAILURE; |
| 38 | } |
| 39 |