mrjohannchang / winwifi

Windows Wi-Fi CLI utility written in Python
https://pypi.org/project/winwifi/
Mozilla Public License 2.0
35 stars 19 forks source link

wifi scan --refresh gives "unknown switch" error for command line usage #9

Closed aaronwarshay closed 4 years ago

aaronwarshay commented 4 years ago

Hello! I tried to use this today, for refreshing the list of local access points, but was having an issue. Will you please advise? I was really excited because I need to implement handling the Wlanapi DLL, and looks like you covered it already, except the refresh part is not working.

C:\temp>wifi scan --refresh
Error: Unknown switch --refresh
------
wifi scan 1.0.3

Scan and list nearby Wi-Fi access points

Usage:
    wifi scan [SWITCHES]

Meta-switches:
    -h, --help         Prints this help message and quits
    --help-all         Prints help messages of all sub-commands and quits
    -v, --version      Prints the program's version and quits

pip package info:

C:\temp>pip list
Package    Version
---------- -------
comtypes   1.1.7
pip        20.1.1
plumbum    1.6.9
setuptools 47.1.1
wheel      0.34.2
winwifi    1.0.3

using Windows 10

aaronwarshay commented 4 years ago

oh so sorry, it looks like it already refreshes now! https://github.com/changyuheng/winwifi.py/pull/4 - nice work