def getopt(self, shortopts, longopts=[]):
        "get options and merge into dict 'opt'"
        try:
            options, self._argv = getopt.getopt(self._argv, shortopts, longopts)
        except getopt.GetoptError:
            self.usage()
        self.opt.update(dict(options))
get options and merge into dict 'opt'
recipes/Python/302262_Handling_commline_arguments_options_arguments/recipe-302262.py