trx_toolkit/burst_send.py: fix: use proper argparse group
Found using Flake8, F841 "local variable 'pf_group' is assigned to but never used". The filtering related options should be defined in 'pf_group' group, not in 'cnt_group'. Change-Id: I15d17c134cbbbd54d761113a56c1f83910ab6407
This commit is contained in:
parent
1bea8faa7d
commit
7dacdcbd09
|
@ -134,13 +134,13 @@ class Application(ApplicationBase):
|
|||
help = "Stop after sending N messages")
|
||||
|
||||
pf_group = parser.add_argument_group("Filtering (optional)")
|
||||
cnt_group.add_argument("--timeslot", metavar = "TN",
|
||||
pf_group.add_argument("--timeslot", metavar = "TN",
|
||||
dest = "pf_tn", type = int, choices = range(0, 8),
|
||||
help = "TDMA timeslot number (equal TN)")
|
||||
cnt_group.add_argument("--frame-num-lt", metavar = "FN",
|
||||
pf_group.add_argument("--frame-num-lt", metavar = "FN",
|
||||
dest = "pf_fn_lt", type = int,
|
||||
help = "TDMA frame number (lower than FN)")
|
||||
cnt_group.add_argument("--frame-num-gt", metavar = "FN",
|
||||
pf_group.add_argument("--frame-num-gt", metavar = "FN",
|
||||
dest = "pf_fn_gt", type = int,
|
||||
help = "TDMA frame number (greater than FN)")
|
||||
|
||||
|
|
Loading…
Reference in New Issue