[PATCH v2 3/6] reg: Fail if duplicate command-line switches are passed to 'reg add'