def add_opts(self, optparser):
optlist = [
optparse.make_option('--json-schema-debug',
dest='schema_debug',
action="store_true",
help='JSON Schema debug'),
optparse.make_option('--json-schema-path',
dest='schema_path',
help='JSON Schema path'),
optparse.make_option('--json-schema-title',
dest='schema_title',
help='JSON Schema title'),
]
group = optparser.add_option_group("JSON Schema-specific options")
group.add_options(optlist)
评论列表
文章目录