#3358 regenerate option now is called generate and has more
possibiliteis