Fixed if/else statements in option.args setter when checking action
type.