From 7ef5224f59b0f7c878f2dc4ad9c3e8c5ad58ea71 Mon Sep 17 00:00:00 2001 From: FaaizHaikal Date: Fri, 26 Apr 2024 22:58:28 +0700 Subject: [PATCH] refactor: use cerr for error log --- src/action_main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/action_main.cpp b/src/action_main.cpp index 241ba0e..dafe790 100644 --- a/src/action_main.cpp +++ b/src/action_main.cpp @@ -43,8 +43,8 @@ int main(int argc, char * argv[]) if (argc < 3) { - std::cout << "Bad arguments!\n"; - std::cout << help_message; + std::cerr << "Bad arguments!\n"; + std::cerr << help_message; return 0; }