Automate help message using variants and options arrays. Fix wrong arithmetic used to set the mask used to check options