The SetupPokemonFlagSet() and SetupAbilityFlagSet() commands return several separate values. Readability can be improved by using a struct:
type PokemonFlags struct {
FlagSet *flag.FlagSet
Abilities *bool
ShortAbilities *bool
Defense *bool
ShortDefense *bool
Image *string
ShortImage *string
Move *bool
ShortMove *bool
Stats *bool
ShortStats *bool
Types *bool
ShortTypes *bool
}
and
type AbilityFlags struct {
FlagSet *flag.FlagSet
Pokemon *bool
ShortPokemon *bool
}
The
SetupPokemonFlagSet()andSetupAbilityFlagSet()commands return several separate values. Readability can be improved by using astruct:and