Skip to content

Commit

Permalink
fittxt: --nounk argument
Browse files Browse the repository at this point in the history
  • Loading branch information
polyvertex committed Sep 10, 2021
1 parent 2c06158 commit e3c9903
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions fitdecode/cmd/fittxt.py
Expand Up @@ -342,6 +342,10 @@ def parse_args(args=None):
'--nodef', action='store_true',
help='Do not output FIT local message definitions')

parser.add_argument(
'--nounk', action='store_true',
help='Do not output unknown FIT messages (e.g. "unknown_140")')

parser.add_argument(
'--strip', action='store_true',
help='Do not output the extended global stats in header')
Expand Down Expand Up @@ -393,6 +397,13 @@ def _echo_separator():
frame.frame_type == fitdecode.FIT_FRAME_DEFINITION):
continue

if (options.nounk and
frame.frame_type in (
fitdecode.FIT_FRAME_DEFINITION,
fitdecode.FIT_FRAME_DATA) and
frame.mesg_type is None):
continue

if (options.filter and
frame.frame_type in (
fitdecode.FIT_FRAME_DEFINITION,
Expand Down

0 comments on commit e3c9903

Please sign in to comment.