Standard maintenance scripts (RUN_MAINTENANCE_IF_MAIN) should fail on unknown parameters.
This is good practice in general (e.g. most GNU/Linux commands do this) and would have prevented one cause of https://wikitech.wikimedia.org/wiki/Incident_documentation/20150825-Redis .