From 2d53c898db5bd4cc061298b8c24ceb8c362c40fa Mon Sep 17 00:00:00 2001 From: Nikos Tsipinakis Date: Mon, 20 Feb 2017 17:28:54 +0200 Subject: [PATCH] Print usage information to stdout instead of stderr It doesn't make much sense to print usage into to stderr. What's more is that it prevents users from easily piping the output to other programs(i.e. grep) --- src/dunst.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/dunst.c b/src/dunst.c index 464736f..3a6008c 100644 --- a/src/dunst.c +++ b/src/dunst.c @@ -391,8 +391,7 @@ void usage(int exit_status) { fputs("usage:\n", stderr); char *us = cmdline_create_usage(); - fputs(us, stderr); - fputs("\n", stderr); + puts(us); exit(exit_status); }