lib/opts: report invalid integer passed to an OptionInt