The berry command incorrectly calls ValidateTypesArgs().
A ValidateBerryArgs() function doesn't currently exist.
New function in v1.7.3:
func ValidateBerryArgs(args []string) error {
if err := checkLength(args, 3); err != nil {
return err
}
if err := checkNoOtherOptions(args, 3, "<types>"); err != nil {
return err
}
return nil
}