mod: struct xoption support val eq -1, then return opt