explicitly ignore a few errors

This commit is contained in:
Kovid Goyal
2022-12-13 16:19:46 +05:30
parent 3f65ce0e71
commit 2b66775f45
3 changed files with 9 additions and 6 deletions

View File

@@ -88,7 +88,10 @@ func GenerateCompletions(args []string) error {
re(root)
}
root.Validate()
err = root.Validate()
if err != nil {
return err
}
all_completions := make([]*Completions, 0, 1)
for _, argv := range all_argv {
all_completions = append(all_completions, root.GetCompletions(argv, init_completions[output_type]))