pulsejets / check_wmi_eventid

0 stars 1 forks source link

-S (sourcename not working) #2

Open vgdelcampo opened 6 years ago

vgdelcampo commented 6 years ago

When using -S , it doesnt works

rojobull commented 6 years ago

Yes. The problem is in the line that reads in the arguments. The problem is that a colon is missing in between the Sw. This basically ignores the source name you pass it. Simply add a colon and it will work. I am putting in a pull request with some other changes and will add this to it.

Current: while getopts "hH:u:p:f:l:t:e:s:Sw:c:m:W:C:O:U:dv" OPTION Changed to: while getopts "hH:u:p:f:l:t:e:s:S:w:c:m:W:C:O:U:dv" OPTION

vgdelcampo commented 6 years ago

Thanks a lot! It works!