Skip to content

Commit efca1eb

Browse files
authored
arg parsing bugfix (#362)
Signed-off-by: Martin Sablotny <[email protected]>
1 parent 345fd2f commit efca1eb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/sign.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def _arguments() -> argparse.Namespace:
6565
help="paths to pem encoded certificate files or a single file"
6666
+ "containing a chain",
6767
required=False,
68-
type=list[str],
68+
type=str,
6969
default=[],
7070
nargs="+",
7171
dest="cert_chain_path",

src/verify.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ def _arguments() -> argparse.Namespace:
6363
help="paths to PEM encoded certificate files or a single file"
6464
+ "used as the root of trust",
6565
required=False,
66-
type=list[str],
66+
nargs="+",
67+
type=str,
6768
default=[],
6869
dest="root_certs",
6970
)

0 commit comments

Comments
 (0)