def METHOD_NAME(self):
    self.subparsers = self.parser.add_subparsers(help="sub-command help")
    # generate
    self.parser_generate = self.subparsers.add_parser(
        "generate", help="Generate version header"
    )
    self.parser_generate.add_argument("-o", dest="outdir", required=True)
    self.parser_generate.add_argument(
        "-t",
        dest="target",
        type=int,
        help="hardware target",
        required=True,
    )
    self.parser_generate.add_argument(
        "-fw-origin",
        dest="firmware_origin",
        type=str,
        help="firmware origin",
        required=True,
    )
    self.parser_generate.add_argument("--dir", dest="sourcedir", required=True)
    self.parser_generate.set_defaults(func=self.generate)