fixes #7284 - display optional for options that are not required

Display "optional" next to options that are not required.