The mangler has been (IMHO) very productive of good ideas for writing larger Scheme programs. Here I've split out some of the pieces that I re-use fairly often.
This code comes in two pieces, mostly to satisfy the Bigloo module system. One piece contains the R5RS macros, the other piece contains the code that implements the command-line parser (plus a few utility functions that are missing from R5RS).