mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-10-31 18:58:01 +00:00 
			
		
		
		
	stations_connected.py : added argsparse --help
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
		| @@ -3,6 +3,7 @@ | ||||
| import sys | ||||
| import os | ||||
| import importlib | ||||
| import argparse | ||||
|  | ||||
| if sys.version_info[0] != 3: | ||||
|     print("This script requires Python 3") | ||||
| @@ -46,6 +47,20 @@ class StationsConnected(LFCliBase): | ||||
|         return counter | ||||
|  | ||||
| def main(): | ||||
|     parser = argparse.ArgumentParser( | ||||
|         prog='stations_connected.py', | ||||
|         formatter_class=argparse.RawTextHelpFormatter, | ||||
|         epilog='''\ | ||||
|         stations_connected.py | ||||
|  | ||||
|             ''', | ||||
|         description='''\ | ||||
| Contains examples of using realm to query stations and get specific information from them | ||||
|         ''') | ||||
|     # if args are added  args=parser.parse_args() swap out next line | ||||
|     parser.parse_args() | ||||
|  | ||||
|  | ||||
|     qstationsx = StationsConnected("localhost", 8080) | ||||
|     bssid = "00:0E:8E:7B:DF:9B" | ||||
|     if qstationsx.run(): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Chuck SmileyRekiere
					Chuck SmileyRekiere