Upgrade tools.cli version to 0.3.1.

Use parse-opts instead of cli.