I needed some way to specify the cwd that the p4 command should run in (otherwise I needed to do awkward chdir stuff to work around it).
As far as I can tell, the options that p4 accepts don't collide with the options that can be passed to the child process exec function. But if you'd prefer instead to use a separate argument for the child process options, I can do it that way and submit a different PR. Or if you're against this idea altogether, I can just manually chdir prior to calling the p4 methods.
I needed some way to specify the cwd that the p4 command should run in (otherwise I needed to do awkward chdir stuff to work around it).
As far as I can tell, the options that p4 accepts don't collide with the options that can be passed to the child process exec function. But if you'd prefer instead to use a separate argument for the child process options, I can do it that way and submit a different PR. Or if you're against this idea altogether, I can just manually chdir prior to calling the p4 methods.