Skip to content

Commit 6a93489

Browse files
Copilotpmai
andauthored
Re-add -d flag for backward compatibility; mark as deprecated
Agent-Logs-Url: https://github.com/OpenSimulationInterface/qc-osi-trace/sessions/07cce862-6700-4593-b24a-de169832d348 Co-authored-by: pmai <91502+pmai@users.noreply.github.com>
1 parent 68d95f3 commit 6a93489

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,16 @@ from qc_ositrace.checks.deserialization import deserialization_checker
5050
```bash
5151
qc_ositrace --help
5252

53-
usage: QC OSI Trace Checker [-h] [-c CONFIG_PATH] [-i INPUT_FILE] [--osiTopic OSITOPIC] [--osiType OSITYPE]
53+
usage: QC OSI Trace Checker [-h] [-d] [-c CONFIG_PATH] [-i INPUT_FILE] [--osiTopic OSITOPIC] [--osiType OSITYPE]
5454
[--osiVersion OSIVERSION] [--osiRulesFile OSIRULESFILE] [-r RESULT_FILE]
5555
[--output_config OUTPUT_CONFIG]
5656

5757
ASAM QC checker bundle for checking the validity of OSI Trace (.osi/.mcap) files.
5858

5959
options:
6060
-h, --help show this help message and exit
61+
-d, --default_config Deprecated. Retained for backward compatibility. Default configuration is used whenever -c is
62+
omitted.
6163
-c, --config_path CONFIG_PATH
6264
-i, --input_file INPUT_FILE
6365
Path to the input OSI Trace file.
@@ -143,14 +145,16 @@ It is also possible to execute the qc_ositrace application using Poetry:
143145
```bash
144146
poetry run qc_ositrace --help
145147

146-
usage: QC OSI Trace Checker [-h] [-c CONFIG_PATH] [-i INPUT_FILE] [--osiTopic OSITOPIC] [--osiType OSITYPE]
148+
usage: QC OSI Trace Checker [-h] [-d] [-c CONFIG_PATH] [-i INPUT_FILE] [--osiTopic OSITOPIC] [--osiType OSITYPE]
147149
[--osiVersion OSIVERSION] [--osiRulesFile OSIRULESFILE] [-r RESULT_FILE]
148150
[--output_config OUTPUT_CONFIG]
149151

150152
ASAM QC checker bundle for checking the validity of OSI Trace (.osi/.mcap) files.
151153

152154
options:
153155
-h, --help show this help message and exit
156+
-d, --default_config Deprecated. Retained for backward compatibility. Default configuration is used whenever -c is
157+
omitted.
154158
-c, --config_path CONFIG_PATH
155159
-i, --input_file INPUT_FILE
156160
Path to the input OSI Trace file.

qc_ositrace/main.py

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

21+
parser.add_argument(
22+
"-d",
23+
"--default_config",
24+
action="store_true",
25+
help="Deprecated. Retained for backward compatibility. Default configuration is used whenever -c is omitted.",
26+
)
2127
parser.add_argument("-c", "--config_path")
2228

2329
parser.add_argument(

0 commit comments

Comments
 (0)