[master] 8295fed Exit with 0 if -h was used

Federico G. Schwindt fgsch at lodoss.net
Sat Jun 4 18:19:05 CEST 2016


commit 8295fed485b707901cb6e071c3aed8bcb6b4f8ed
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date:   Sat Jun 4 16:43:16 2016 +0100

    Exit with 0 if -h was used

diff --git a/bin/varnishhist/varnishhist.c b/bin/varnishhist/varnishhist.c
index d8a9905..d58d1ab 100644
--- a/bin/varnishhist/varnishhist.c
+++ b/bin/varnishhist/varnishhist.c
@@ -391,6 +391,9 @@ main(int argc, char **argv)
 	assert(VUT_Arg('c', NULL));
 	while ((i = getopt(argc, argv, vopt_spec.vopt_optstring)) != -1) {
 		switch (i) {
+		case 'h':
+			/* Usage help */
+			usage(0);
 		case 'P':
 			colon = strchr(optarg, ':');
 			/* no colon, take the profile as a name*/



More information about the varnish-commit mailing list