feat: add choices param in preset cli options
This commit is contained in:
1 parent
9bdc1cf9d5
commit
e95f30a8a2
1 file changed
+2
@@ -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",
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user