cli: Fix nonetype issue with cachemaker and exit after printing version

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
cli: Run onecmd if any arg is passed

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>