I am building an app with C# using the P4Api, but I need to use the parameters -zprog and -zversion so the server logs show from what app the commands are coming as this post explains: https://community.perforce.com/s/article/11551
string logParams = "-zprog=MyApp -zversion=1.1";
P4Command cmd = new P4Command(rep, "sync", false, path);
- I've tried to pass the logParams as an argument to the P4Command, before and after the path, but it recognize them as another path to a file, returning a "no such file(s)" message error.
- I've tried to add it before the "sync", but it recognize it as a command, so it returns a "Unknown command" message error.
As the link explains, using the cmd, this command should be "p4 -zprog=MyApp -zversion=1.1 sync [path]", so this parameters should be for the "p4" and not for the "sync"
Is it possible to add this parameters to the command? If not, any suggestion on how to do this?
Thanks.