feat: add choices param in preset cli options

This commit is contained in:
yyc12345 committed 2026-10-19 14:40:41 +08:00
1 parent 9bdc1cf9d5
commit e95f30a8a2
1 file changed
+2
+2
View File
@@ -120,6 +120,7 @@ def create_argparser(setup: StdOptsSetup) -> ArgumentParser:
dest="svg_render",
action="store",
type=CliSvgRenderKind,
choices=list(CliSvgRenderKind),
default=CliSvgRenderKind.Inkscape,
help="The render used for rendering SVG into PNG.",
metavar="RENDER",
@@ -131,6 +132,7 @@ def create_argparser(setup: StdOptsSetup) -> ArgumentParser:
action="extend",
nargs="+",
type=CliArtifactFormat,
choices=list(CliArtifactFormat),
help="Only build artifacts of given formats. Repeatable. Default all formats.",
metavar="FORMAT",
)