Skip to content

Commit 3e7b5e1

Browse files
committed
Fixed help text for the "--filter" argument, as the filters should be separated by spaces
1 parent fae631b commit 3e7b5e1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

can/viewer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -384,11 +384,11 @@ def parse_args(args):
384384
metavar='{<id>:<format>,<id>:<format>:<scaling1>:...:<scalingN>,file.txt}',
385385
nargs=argparse.ONE_OR_MORE, default='')
386386

387-
optional.add_argument('-f', '--filter', help='R|Comma separated CAN filters for the given CAN interface:'
387+
optional.add_argument('-f', '--filter', help='R|Space separated CAN filters for the given CAN interface:'
388388
'\n <can_id>:<can_mask> (matches when <received_can_id> & mask == can_id & mask)'
389389
'\n <can_id>~<can_mask> (matches when <received_can_id> & mask != can_id & mask)'
390-
'\nFx to show only frames with ID 0x100 to 0x103:'
391-
'\n python -m can.viewer -f 100:7FC'
390+
'\nFx to show only frames with ID 0x100 to 0x103 and 0x200 to 0x20F:'
391+
'\n python -m can.viewer -f 100:7FC 200:7F0'
392392
'\nNote that the ID and mask are alway interpreted as hex values',
393393
metavar='{<can_id>:<can_mask>,<can_id>~<can_mask>}', nargs=argparse.ONE_OR_MORE, default='')
394394

0 commit comments

Comments
 (0)