Your toddler will be "good" if he feels like doing what you happen to want him to do and does not happen to feel like doing anything you would dislike. With a little cleverness you can organize life as a whole, and issues in particular, so that you both want the same thing most of the time.
Penelope Leach (2013). “Your Baby and Child”, p.324, Knopf