Fix issue with argument handling. (#1640)
Fix issue with argument handling. (#1640)

There is an issue with argument handling that is causing issues when scanning
using certain argument combinations. I believe this is similar to
https://github.com/VirusTotal/yara/pull/927. Here's an example of it broken in
master:

wxs@wxs-mbp yara % cat rules/always_true.yara
rule a { condition: true }
wxs@wxs-mbp yara % ./yara -p 1 rules/always_true.yara /bin
wxs@wxs-mbp yara %

And the same thing with this fix:

wxs@wxs-mbp yara % ./yara -p 1 rules/always_true.yara /bin
    a /bin/cat
    a /bin/echo
    a /bin/launchctl
    a /bin/df
<snip>

Issue spotted by: Conor Quigley (https://github.com/schrodyn)
VirusTotal/yara,VirusTotal/yara,pombredanne/yara,wxsBSD/yara,pombredanne/yara,VirusTotal/yara,wxsBSD/yara,VirusTotal/yara,hillu/yara,hillu/yara,VirusTotal/yara,pombredanne/yara,wxsBSD/yara,hillu/yara,hillu/yara,wxsBSD/yara,wxsBSD/yara,pombredanne/yara,hillu/yara,pombredanne/yara