Skip to content

Commit

Permalink
Allow upper or lowercase metric name on CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
JMMackenzie committed Dec 17, 2024
1 parent 89d8c4d commit b88f2b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rbstar/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def rbstar_main():
description="RBStar CLI",
formatter_class=argparse.ArgumentDefaultsHelpFormatter
)
parser.add_argument("-m", "--metric", type=str, choices=[m.name.lower() for m in Metric], required=True, help="Specify the metric to use")
parser.add_argument("-m", "--metric", type=str.lower, choices=[m.name.lower() for m in Metric], required=True, help="Specify the metric to use")
parser.add_argument("-o", "--observation", type=str, action='append', required=True, help="Path(s) to the observation file(s)")
parser.add_argument("-r", "--reference", type=str, required=True, help="Path to the reference file")
parser.add_argument("-p", "--phi", type=float, default=0.95, help="Persistence parameter", choices=[Range(0, 1)])
Expand Down

0 comments on commit b88f2b1

Please sign in to comment.