Skip to content

Commit e21b2a3

Browse files
authored
Merge pull request #163 from DrDaveD/send-warn-to-stdout
Send usage warning to stdout instead of stderr
2 parents ac2e670 + e7fdb84 commit e21b2a3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/verify.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,9 @@ int main(int argc, char *const *argv) {
9090
std::string token;
9191
// If a positional argument is present, treat it as the token (with warning)
9292
if (optind < argc) {
93-
fprintf(stderr,
94-
"%s: Warning: Providing the token on the command line is "
95-
"insecure. Please use stdin instead.\n",
96-
argv[0]);
93+
std::cout << argv[0]
94+
<< ": Warning: Providing the token on the command line is "
95+
<< "insecure. Please use stdin instead." << std::endl;
9796
token = argv[optind];
9897
} else {
9998
// Read token from stdin

0 commit comments

Comments
 (0)