ataradov / usb-sniffer

Low-cost LS/FS/HS USB sniffer with Wireshark interface
BSD 3-Clause "New" or "Revised" License
775 stars 85 forks source link

fix: display help info when no args provided #9

Closed huajijam closed 1 year ago

huajijam commented 1 year ago

before: image after: image

ataradov commented 1 year ago

I don't like then programs do this and this is not how command line tools usually behave.

Brief message telling you what to do is enough.

huajijam commented 1 year ago

I don't like then programs do this and this is not how command line tools usually behave.

Brief message telling you what to do is enough.

but, L144 will not trigger when no args provided,maybe ur os_check is broken?

I check with no args and a args begin with no “-” argc and last both are 1,but it just not happen

huajijam commented 1 year ago

image image

ataradov commented 1 year ago

Yeah, that's a mistake. I'll fix that along with adding better debug info.