improve error message for cmdargs