print an error message if invalid arguments are specified (issue #5872)