Getopts for process pipelines