Warner Losh writes:
The large number of times I've had to replace
inline code like you've
quoted with
getopt to fix the irregularities in command line parsing suggests that we
differ on
this viewpoint.
Fine by me. Never hurts to know what other people consider best practices.