Skip to content
Snippets Groups Projects
Verified Commit 87a09b2d authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

fix help request should not removed from errors

parent d7198815
No related branches found
No related tags found
No related merge requests found
......@@ -52,11 +52,6 @@ func execute[C any, D Copyable[D]](cmd C, cnf D, name string, args []string) *Se
instance.Parse(args)
if instance.HelpRequested() {
for i, err := range instance.errors {
if err == flag.ErrHelp {
instance.errors = append(instance.errors[:i], instance.errors[i+1:]...)
}
}
return instance
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment