"Roger - pay the two dollars." (From Hitchcock's North By Northwest.)
With that out of the way, I've repaired shorts with fabric repair patches, available on Amazon and elsewhere. Washing machine safe, but not stretchy, so not always a permanent repair, but I've had some that lasted another season or two.