From 404c0488355d00e9dc4d2f30c5dca65209e3a1c0 Mon Sep 17 00:00:00 2001 From: Joona Hoikkala Date: Sat, 21 Mar 2020 14:52:12 +0200 Subject: [PATCH] Fix error with missing usage info (#195) --- help.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/help.go b/help.go index 830c21a..1bb341e 100644 --- a/help.go +++ b/help.go @@ -54,7 +54,7 @@ func Usage() { Description: "Options controlling the HTTP request and its parts.", Flags: make([]UsageFlag, 0), Hidden: false, - ExpectedFlags: []string{"H", "X", "b", "d", "r", "u", "recursion", "recursion-depth", "replay-proxy", "timeout", "x"}, + ExpectedFlags: []string{"H", "X", "b", "d", "r", "u", "recursion", "recursion-depth", "replay-proxy", "timeout", "ignore-body", "x"}, } u_general := UsageSection{ Name: "GENERAL OPTIONS", @@ -115,7 +115,7 @@ func Usage() { } } if !found { - fmt.Printf("DEBUG: Flag %s was found but not defined in usage.go.\n", f.Name) + fmt.Printf("DEBUG: Flag %s was found but not defined in help.go.\n", f.Name) os.Exit(1) } if len(f.Name) > max_length {