WLAN-Pi / wlanpi-profiler

Wi-Fi client capabilities analyzer tool built for the WLAN Pi
BSD 3-Clause "New" or "Revised" License
25 stars 9 forks source link

error telling profiler to run on channel 2 #29

Closed joshschmelzle closed 4 years ago

joshschmelzle commented 4 years ago

when trying to run profiler on channel 2, we get a [Errno 2] No such file or director: ''.

wlanpi@wlanpi:~$ sudo profiler -c 2
usage: profiler [-h] [-i INTERFACE] [-c CHANNEL] [-s SSID | --hostname_ssid]
                [--pcap <FILE>] [--noAP] [--11r | --no11r] [--11ax | --no11ax]
                [--noprep] [--config <FILE>] [--menu_file <FILE>]
                [--files_root <PATH>] [--clean] [--oui_update]
                [--logging [{debug,warning}]] [--version]
profiler: error: [Errno 2] No such file or directory: ''

If we remove the space between the argument and the value; -c 2 to -c2 it runs.

wlanpi@wlanpi:~$ sudo profiler -c2

--------------------------------------------
Starting Profiler

SSID: WLAN Pi
Channel: 2
Interface: wlan0

Version info:

wlanpi@wlanpi:~$ sudo profiler -V
profiler 1.0.0-alpha1
joshschmelzle commented 4 years ago

fixed in #38