Cap top and bottom of cylinder light shape...

I would like the ability to cap the top and bottom of a light when it is set to ‘Cylinder’.

Thanks!