Update cli.py

Use dict.get for all parameter.