Check for unused parameters on the CLI too

closes #4123