Create function to identify option terminator
Create function to identify option terminator

As with options and option arguments, consolidate checking for option
terminators.

Signed-off-by: Kevin Locke <ffb4761cba839470133bee36aeb139f58d7dbaa9@kevinlocke.name>

kevinoid/ultragetopt,kevinoid/ultragetopt