Skip to content

Commit

Permalink
- made check-c-p optional;
Browse files Browse the repository at this point in the history
- removed filtering accidentally left over from previous use;
  • Loading branch information
jaltmayerpizzorno committed Aug 26, 2024
1 parent 9b84650 commit 25c6b2e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/coverup/logreader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand All @@ -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:
Expand Down

0 comments on commit 25c6b2e

Please sign in to comment.