Factored out a few functions.
NEEDAFFIX, long flags, continuation affixes.