[PATCH] CLI: fix traceback when -p is used with unsupported value