updated the cli to scopt 3.2.0 api.

Hi,
Have updated the cli to conform with api changes in 3.2.0 of scopt.