goaccess/0001-Fix-usage-exit-code.patch
baizg1107 dc67c33cb1 Fix goaccess -h/--help exit-code
(cherry picked from commit 867e181b83db2309180078bb889d1db86bf97972)
2021-10-09 15:28:57 +08:00

26 lines
561 B
Diff

From 40522f4cb1b4825a168639563aa0ff3750a0d393 Mon Sep 17 00:00:00 2001
From: baizg1107 <preloyalwhite@163.com>
Date: Fri, 8 Oct 2021 18:34:35 +0800
Subject: [PATCH] Fix usage exit code
---
src/options.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/options.c b/src/options.c
index cea991f..9025914 100644
--- a/src/options.c
+++ b/src/options.c
@@ -288,7 +288,7 @@ cmd_help (void)
"\n\n"
, INFO_HELP_EXAMPLES, INFO_MORE_INFO, GO_WEBSITE
);
- exit (EXIT_FAILURE);
+ exit (EXIT_SUCCESS);
}
/* *INDENT-ON* */
--
2.27.0