René Scharfe [off-list ref] writes:
The parseopt parser allows multiple occurrences of --remote and --exec
unlike the previous one; the one specified last wins. This looseness
is acceptable, I think.
I agree.
If we care about this very deeply, we can add "this option is supposed to
be singleton" option to the parse_options infrastructure. Besides, the
"last one wins" rule is often more convenient than "there has to be at
most one" rule in real life.