use "case", not "if", in argument handling
typo