[p4] Question about p4v command line

G Barthelemy gb.perforce at googlemail.com
Tue Jan 30 02:10:32 PST 2007


On 1/30/07, Dan Konigsbach <DKonigsbach at dominator.com> wrote:
> The Perforce Visual Client documents some of its command line parameters
> via "p4v -help":  -p, -u, -c, -P, -log, -logall, -V, -h, and -help.
>
> Does anyone know if Is there any documentation on the others?
> In particular:
> - When is the -win parameter required?  What does its value represent?
> - What are the commands that can be specified via the -cmd parameter?
>
> This looks like it could be a powerful capability, if one knows how to
> wield it.

Once I needed to be able to invoke the Revision Graph P4V GUI from
command line, and noticing that P4Win was invoking it, I took a closer
look at the command that P4Win was issuing (using sysinternals.com
"Process Explorer"). I saw something like this:

p4v -win 1234 -cmd "tree //depot/path/file.c"

(the command line also contained the usual -p -u -c switches).

I queried support about it (particularly as "-win 1234" worked on my
Windows host but not on others), and their answer was that this is an
undocumented interface and is not currently supported, but that using
"-win 0" should work for most.

I haven't tried to search for other commands than "tree".

-- 
Guillaume


More information about the perforce-user mailing list