Skip to content

Commit 2873d72

Browse files
Copilotpmai
andauthored
Make -d flag optional; default to default config when neither -c nor -d is supplied
Agent-Logs-Url: https://github.com/OpenSimulationInterface/qc-osi-trace/sessions/3f67a849-04c8-4ca6-b69f-2c18366a0dfe Co-authored-by: pmai <91502+pmai@users.noreply.github.com>
1 parent 26bd9dd commit 2873d72

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

qc_ositrace/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def args_entrypoint() -> argparse.Namespace:
1818
description="ASAM QC checker bundle for checking the validity of OSI Trace (.osi/.mcap) files.",
1919
)
2020

21-
group = parser.add_mutually_exclusive_group(required=True)
21+
group = parser.add_mutually_exclusive_group(required=False)
2222
group.add_argument("-d", "--default_config", action="store_true")
2323
group.add_argument("-c", "--config_path")
2424

@@ -95,7 +95,7 @@ def main():
9595
logging.info("Initializing checks")
9696

9797
config = Configuration()
98-
if args.default_config:
98+
if args.default_config or not args.config_path:
9999
logging.info("Using default configuration")
100100
config.register_checker_bundle(checker_bundle_name=constants.BUNDLE_NAME)
101101
else:

0 commit comments

Comments
 (0)