From 25c6b2e120a1e4073cd9caedf778bf1e0549aa1d Mon Sep 17 00:00:00 2001 From: Juan Altmayer Pizzorno Date: Mon, 26 Aug 2024 12:31:38 -0400 Subject: [PATCH] - made check-c-p optional; - removed filtering accidentally left over from previous use; --- src/coverup/logreader.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/coverup/logreader.py b/src/coverup/logreader.py index a33be31..2a91182 100644 --- a/src/coverup/logreader.py +++ b/src/coverup/logreader.py @@ -193,6 +193,9 @@ def parse_args(): ap.add_argument('--errors-only', action="store_true", help='show errors only') + ap.add_argument('--check-c-p', action="store_true", + help='check for C prompts that are equivalent to a C prompt') + ap.add_argument('logs', type=Path, nargs='+', help='log file(s) to process') return ap.parse_args() @@ -201,13 +204,10 @@ def parse_args(): args = parse_args() for log in args.logs: - for seg, seq in get_sequences(log.read_text()): + for seg, seq in get_sequences(log.read_text(), check_c_p_equivalence=args.check_c_p): if args.errors_only and seq[-1][0] == 'G': continue - if seq[-1][0] == '*': - seq = seq[:-1] - print("=======", seg, ''.join(ev[0] for ev in seq)) for ev in seq: