Simple command-line option parsing for C