Comment 3 for bug 527878

Revision history for this message
Martin Pool (mbp) wrote : Re: [Bug 527878] Re: All commands should accept an explicit location or -d

On 26 February 2010 23:22, Maciej Katafiasz <email address hidden> wrote:
> Depends on how hard you estimate that to be. If it's not too extensive a
> change, and I can get some guidance, then yes, I could try my hand at
> it

The easiest way to do this would be to copy and paste the existing -d
implementation from the commands that have it to those that don't. A
patch to do this would be acceptable, but as you note it would be more
elegant to do this globally.

To do that you probably need to add -d as a global option, and then
have a concept on the "Command" class of the default location. Code
that currently relies on getcwd should use this instead.

--
Martin <http://launchpad.net/~mbp/>