# Functions
ParseAndRunForTest parses the cmd with the given env and args, and calls Run on the returned runner.
RunnerFunc is like cmdline.RunnerFunc, but takes a run function that includes a context as the first arg.
RunnerFuncWithInit is like RunnerFunc, but allows specifying the init function used to create the context.