[PATCH 1/3] reg: Abort 'add' operation when parsing command-line arguments that are not switches