def METHOD_NAME(self, optparser):
    optlist = [
        optparse.make_option("--yin-canonical",
                             dest="yin_canonical",
                             action="store_true",
                             help="Print in canonical order"),
        optparse.make_option("--yin-pretty-strings",
                             dest="yin_pretty_strings",
                             action="store_true",
                             help="Pretty print strings"),
        ]
    g = optparser.add_option_group("YIN output specific options")
    g.add_options(optlist)