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",
|
dest="svg_render",
|
||||||
action="store",
|
action="store",
|
||||||
type=CliSvgRenderKind,
|
type=CliSvgRenderKind,
|
||||||
|
choices=list(CliSvgRenderKind),
|
||||||
default=CliSvgRenderKind.Inkscape,
|
default=CliSvgRenderKind.Inkscape,
|
||||||
help="The render used for rendering SVG into PNG.",
|
help="The render used for rendering SVG into PNG.",
|
||||||
metavar="RENDER",
|
metavar="RENDER",
|
||||||
@@ -131,6 +132,7 @@ def create_argparser(setup: StdOptsSetup) -> ArgumentParser:
|
|||||||
action="extend",
|
action="extend",
|
||||||
nargs="+",
|
nargs="+",
|
||||||
type=CliArtifactFormat,
|
type=CliArtifactFormat,
|
||||||
|
choices=list(CliArtifactFormat),
|
||||||
help="Only build artifacts of given formats. Repeatable. Default all formats.",
|
help="Only build artifacts of given formats. Repeatable. Default all formats.",
|
||||||
metavar="FORMAT",
|
metavar="FORMAT",
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in new issue
Block a user