mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-10-31 10:48:02 +00:00 
			
		
		
		
	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:
		| @@ -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', | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Matthew Stidham
					Matthew Stidham