Skip to content

Commit f7c2058

Browse files
committed
Fix bug where string was treated as a list in argparse due to nargs="+"
1 parent faac193 commit f7c2058

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def main():
8080
parser.add_argument(
8181
"--metric",
8282
type=str,
83-
default="entropy",
83+
default=["entropy"],
8484
choices=["entropy", "f1", "recall", "precision", "accuracy"],
8585
nargs="+",
8686
help="Which metric to use for evaluation",

0 commit comments

Comments
 (0)