Skip to content

Commit 451c66d

Browse files
committed
Add --runName option to 'collate'
1 parent f9b05ee commit 451c66d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/subcommands/reporting.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,10 @@ def collateMain(args: argparse.Namespace) -> None:
453453
"cases": caseData,
454454
}
455455

456+
# Add run name provided on command line
457+
if args.runName is not None:
458+
result["runName"] = args.runName
459+
456460
@final
457461
class Encoder(json.JSONEncoder):
458462
def default(self, o):
@@ -591,6 +595,13 @@ def addSubcommands(subparsers) -> None:
591595
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
592596
)
593597
collateParser.set_defaults(entryPoint=collateMain)
598+
collateParser.add_argument(
599+
"--runName", #
600+
help="Add 'runName' entry to output",
601+
type=str,
602+
metavar="NAME",
603+
default=None,
604+
)
594605
collateParser.add_argument(
595606
"dir",
596607
help="Work directory of run",

0 commit comments

Comments
 (0)