def METHOD_NAME(self, *args):
    """Parse commandline and set options attribute"""
    my_args = []
    for arg in pywikibot.handleArgs(*args):
        my_args.append(arg)
    parser = optparse.OptionParser()
    parser.add_option("-r", "--edit_redirect", action="store_true",
                      default=False, help="Ignore/edit redirects")
    parser.add_option("-p", "--page", help="Page to edit")
    parser.add_option("-w", "--watch", action="store_true", default=False,
                      help="Watch article after edit")
    #parser.add_option("-n", "--new_data", default="",
    #                  help="Automatically generated content")
    (self.options, args) = parser.parse_args(args=my_args)
    # for convenience, if we have an arg, stuff it into the opt, so we
    # can act like a normal editor.
    if (len(args) == 1):
        self.options.page = args[0]