Skip to content

Commit

Permalink
Add --extra argument to verifyToSasquatch.
Browse files Browse the repository at this point in the history
This argument makes it possible to specify the edgeHandling parameter
for SasquatchDispatcher.dispatch and .dispatchRef from the
command line.
  • Loading branch information
kfindeisen committed Jul 12, 2023
1 parent f8e2afa commit e4692e8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions python/lsst/analysis/tools/bin/verifyToSasquatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,14 @@ def makeParser():
"date, e.g. 2021-06-30T22:28:25Z. If not provided, the run time or "
"current time is used.",
)
parser.add_argument(
"--extra",
action=_AppendDict,
help="Extra field (in the form key=value) to be added to any records "
"uploaded to Sasquatch. See SasquatchDispatcher.dispatch and "
".dispatchRef for more details. The --extra argument can be passed "
"multiple times.",
)

api_group = parser.add_argument_group("Sasquatch API arguments")
api_group.add_argument(
Expand Down Expand Up @@ -221,4 +229,5 @@ def main():
timestamp=args.date_created,
datasetIdentifier=args.dataset,
identifierFields=dataId,
extraFields=args.extra,
)

0 comments on commit e4692e8

Please sign in to comment.