[PATCH v2 2/6] reg: Parse 'reg add' command-line arguments in add.c