gWhisper
gWhisper copied to clipboard
Options are not parsed greedy
I had the problem, that --customOutput was parsed as a hostname instead of an option.
As a quick-fix I modified hostname grammar to not allow - at the beginning
dnsUri->addChild(f_grammarPool.createElement<RegEx>("[^-:\\[\\] ][^:\\[\\] ]+", "Hostname"));
However this should be investigated further (maybe this is a bigger problem and has effects on other places as well)