Skip to content

Commit 54f7a3d

Browse files
committed
cleanup
1 parent d3bebd4 commit 54f7a3d

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

tools/lib/logreader.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -336,9 +336,7 @@ def time_series(self):
336336

337337
parser = ArgumentParser(description="Process a log file and print identifiers or full messages.")
338338
parser.add_argument("log_path", help="Path to the log file")
339-
parser.add_argument(
340-
"--identifiers-only", action="store_true", help="Print only log identifiers instead of full messages"
341-
)
339+
parser.add_argument("--identifiers-only", action="store_true", help="Print only log identifiers")
342340
args = parser.parse_args()
343341

344342
lr = LogReader(args.log_path, sort_by_time=True)

tools/replay/main.cc

+3-7
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,9 @@ bool parseArgs(int argc, char *argv[], ReplayConfig &config) {
9797
case 'p': config.prefix = optarg; break;
9898
case 0: {
9999
std::string name = cli_options[option_index].name;
100-
if (name == "demo") {
101-
config.route = DEMO_ROUTE;
102-
} else if (name == "auto") {
103-
config.auto_source = true;
104-
} else {
105-
config.flags |= flag_map.at(name);
106-
}
100+
if (name == "demo") config.route = DEMO_ROUTE;
101+
else if (name == "auto") config.auto_source = true;
102+
else config.flags |= flag_map.at(name);
107103
break;
108104
}
109105
case 'h': std::cout << helpText; return false;

0 commit comments

Comments
 (0)