Add edge choices to argparser

This commit is contained in:
Florian Festi 2016-04-19 21:02:05 +02:00
parent b0fd80e188
commit f148421a39
1 changed files with 4 additions and 3 deletions

View File

@ -229,13 +229,14 @@ class Boxes:
elif arg == "bottom_edge":
self.argparser.add_argument(
"--bottom_edge", action="store",
type=ArgparseEdgeType("Fhs"), default="h",
type=ArgparseEdgeType("Fhs"), choices=list("Fhs"),
default="h",
help="edge type for bottom edge")
elif arg == "top_edge":
self.argparser.add_argument(
"--top_edge", action="store",
type=ArgparseEdgeType("eES"), default="e",
help="edge type for top edge")
type=ArgparseEdgeType("eES"), choices=list("eES"),
default="e", help="edge type for top edge")
else:
raise ValueError("No default for argument", arg)