Optimized lookup if previous option is a match or target.
Fix: don't show -j if -g is given and vice versa.
Remove unused str_chain variable.