add new flag-parsing utility and use in mpirun