http://people.freebsd.org/~sf/use_getopt_long-200307012.diff.gz A bit revised. I'm planning to apply it in this weekend if there are no serious bugs hidden in shadow.