Fix error with missing usage info (#195)
This commit is contained in:
parent
ef1aac3a1e
commit
404c048835
4
help.go
4
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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user