Added a check for incorrectly supplied arguments.
Authored by: bugman 2009-06-19
Parent: [r9103]
Child: [r9105]