wokim / node-perforce

A simple library for perforce
MIT License
14 stars 13 forks source link

Adding more p4 options #15

Closed cope closed 9 years ago

cope commented 9 years ago

Adding options from http://www.perforce.com/perforce/r15.1/manuals/cmdref/p4_changes.html

The last, "custom" option allows adding any option which does not require a name, like this one for example "@2011/04/01,@2011/05/01":

p4 changes @2011/04/01,@2011/05/01

Or "//depot/project/..."

p4 changes -m 5 //depot/project/...

Option "cmd" has to be more than just an empty string in order for the query on line 23 of index.js to pass.

Ether that or we need to add || ""===p4option.cmd to line 23 of index.js if "cmd" is an empty string.

wokim commented 9 years ago

Thanks! Sorry for waiting

cope commented 9 years ago

Not a problem! :)