frogiter has -prelude and -arg to choose how to pass res output to <cmd>