nstcl-core, part of nstcl, includes commands to parse arguments and define procedures
[ad_proc ] makes handling optional switches to procs easy.