diff --git a/src/main.cpp b/src/main.cpp index a296b1c..95adec0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -91,28 +91,8 @@ int main(int argc, char *argv[]) } } - if (vm.count("input-file") > 0) + if (vm.count("input-file") == 0) { - cout << "\nINPUT FILES:\n"; - for (const auto &file : vm["input-file"].as>()) - { - cout << " " << file << ":\n"; - try - { - for (const auto &entry : epubgrep::zip::list(file)) - { - cout << " " << entry; - cout << "\n CONTENT:\n"; - cout << "START" << epubgrep::zip::read_file(file, entry) - << "END\n"; - } - } - catch (const epubgrep::zip::exception &e) - { - cerr << '\n' << translate("ERROR: ") << e.what() << '\n'; - cerr << translate("Error while processing EPUB file.") << '\n'; - return EXIT_FAILURE; - } - } + // TODO: Read data from stdin. } }