Implement the optparser to the genattrib