Check for duplicate options.

Check that the short and long flag of each option has not been
defined before adding it to the group. Returns an ErrDuplicatedFlag
in case of error.