|
1 | 1 | # coding: utf-8
|
2 | 2 | #
|
3 |
| -# Copyright (C) 2018 Kristian Sloth Lauszus. All rights reserved. |
| 3 | +# Copyright (C) 2018 Kristian Sloth Lauszus. |
| 4 | +# |
| 5 | +# This program is free software; you can redistribute it and/or |
| 6 | +# modify it under the terms of the GNU Lesser General Public |
| 7 | +# License as published by the Free Software Foundation; either |
| 8 | +# version 3 of the License, or (at your option) any later version. |
| 9 | +# |
| 10 | +# This program is distributed in the hope that it will be useful, |
| 11 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | +# Lesser General Public License for more details. |
| 14 | +# |
| 15 | +# You should have received a copy of the GNU Lesser General Public License |
| 16 | +# along with this program; if not, write to the Free Software Foundation, |
| 17 | +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
4 | 18 | #
|
5 | 19 | # Contact information
|
6 | 20 | # -------------------
|
@@ -370,11 +384,11 @@ def parse_args(args):
|
370 | 384 | metavar='{<id>:<format>,<id>:<format>:<scaling1>:...:<scalingN>,file.txt}',
|
371 | 385 | nargs=argparse.ONE_OR_MORE, default='')
|
372 | 386 |
|
373 |
| - 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:' |
374 | 388 | '\n <can_id>:<can_mask> (matches when <received_can_id> & mask == can_id & mask)'
|
375 | 389 | '\n <can_id>~<can_mask> (matches when <received_can_id> & mask != can_id & mask)'
|
376 |
| - '\nFx to show only frames with ID 0x100 to 0x103:' |
377 |
| - '\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' |
378 | 392 | '\nNote that the ID and mask are alway interpreted as hex values',
|
379 | 393 | metavar='{<can_id>:<can_mask>,<can_id>~<can_mask>}', nargs=argparse.ONE_OR_MORE, default='')
|
380 | 394 |
|
|
0 commit comments