From 529574fb5db0bf3a4bab1a6127799b5b0c7dbb29 Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Wed, 16 Feb 2022 17:16:36 +0100 Subject: [PATCH] Dispenser: Fix sideedges parameter Looks like both the ArgparseEdgeType machinery and the inx conversion should be more robust... Thanks to https://github.com/lucky62 for reporting! Resolves: #369 --- boxes/generators/dispenser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boxes/generators/dispenser.py b/boxes/generators/dispenser.py index da8a423..4091fa7 100644 --- a/boxes/generators/dispenser.py +++ b/boxes/generators/dispenser.py @@ -57,7 +57,7 @@ Please add mounting holes yourself.""" help="height underneath the dispenser (in mm)") self.argparser.add_argument( "--sideedges", action="store", type=ArgparseEdgeType("Fh"), - default="F", + choices=list("Fh"), default="F", help="edges used for holding the front panels and back")