[4.1] fea75b7 Exit with 0 if -h was used

Lasse Karstensen lkarsten at varnish-software.com
Tue Jun 14 15:25:12 CEST 2016


commit fea75b7516b6db76b45a546aac9c59725da5f262
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 f279dc3..36a25e8 100644
--- a/bin/varnishhist/varnishhist.c
+++ b/bin/varnishhist/varnishhist.c
@@ -393,6 +393,9 @@ main(int argc, char **argv)
 	assert(VUT_Arg('c', NULL));
 	while ((i = getopt(argc, argv, 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