lfcli_base: set type of num_stations to always be an integer. Dot not ever, ever, ever set a flag as default=False. Use action='store_true', and do not ever ever ever use both at the same time.

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
Matthew Stidham
2021-11-23 10:01:00 -08:00
parent e137a35ee7
commit 8dcde027f8

View File

@@ -657,6 +657,7 @@ class LFCliBase:
default='1.eth1',
help='non-station port that generates traffic: <resource>.<port>, e.g: 1.eth1')
optional.add_argument('--num_stations',
type=int,
default=0,
help='Number of stations to create')
optional.add_argument('--test_id',
@@ -664,7 +665,6 @@ class LFCliBase:
help='Test ID (intended to use for ws events)')
optional.add_argument('-d',
'--debug',
default=False,
action="store_true",
help='Enable debugging')
optional.add_argument('--proxy',