CLIFF is the Command Line Interface Functional Framework. It allows the user to write functions and hook them up relatively easily to the command line without having to specify its options ahead of time. This library also automatically gathers options from configuration files and environment variables and merges them into one big hash table that it then passes to the function. Many other features exist in this framework. MIT licensed. Code is here.
command-line options parser
cliff