Wearing Shorts (or Revealing Awrah) In Private
Shorts generally do not reveal the awrah (private parts) so there is no harm in wearing shorts.
The issue is irrelevant when one is alone, since this directive applies only when one is in the company of other people.