put getopt support in context