info on myopts2struct and example