gWhisper icon indicating copy to clipboard operation
gWhisper copied to clipboard

Options are not parsed greedy

Open rainerschoe opened this issue 4 years ago • 0 comments

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)

rainerschoe avatar Feb 09 '21 09:02 rainerschoe