From 6f07e2f8c60ed2532e67eedbc364d42937338018 Mon Sep 17 00:00:00 2001 From: Bob Polis Date: Fri, 19 Jan 2024 13:15:18 +0100 Subject: [PATCH] Message when no file args --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 4a61807..0323c42 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -50,11 +50,11 @@ int main(int argc, char* argv[]) { } } if (optind == argc) { - // here when no file args + print_help(); + return EXIT_FAILURE; } for (int i = optind; i < argc; ++i) { try { - // process file argv[i] write_image(std::cout, argv[i]); } catch (const std::runtime_error& ex) { std::cerr << "termage: " << ex.what() << '\n';