fix argument handling for cmd_add