A tool for generating a C function which parses command line arguments