From e7fdb848fdc99b4cf5f95fd2f12e47f2fff21149 Mon Sep 17 00:00:00 2001 From: Dave Dykstra <2129743+DrDaveD@users.noreply.github.com> Date: Mon, 30 Jun 2025 14:00:44 -0500 Subject: [PATCH] send usage warning to stdout instead of stderr --- src/verify.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/verify.cpp b/src/verify.cpp index 2f6abaa..c65aaf9 100644 --- a/src/verify.cpp +++ b/src/verify.cpp @@ -90,10 +90,9 @@ int main(int argc, char *const *argv) { std::string token; // If a positional argument is present, treat it as the token (with warning) if (optind < argc) { - fprintf(stderr, - "%s: Warning: Providing the token on the command line is " - "insecure. Please use stdin instead.\n", - argv[0]); + std::cout << argv[0] + << ": Warning: Providing the token on the command line is " + << "insecure. Please use stdin instead." << std::endl; token = argv[optind]; } else { // Read token from stdin