Getting help with p4 help
In addition to the material in this manual, you can get help
for
Helix Core Server commands by using the p4
help
command, which provides information about individual
commands or for areas like jobs, revisions, or file
types.
The output to the p4 help
command as well as the syntax diagrams included in this manual show the
short form of
the
command options. You can also specify command options using long-form
syntax. For example, instead of the following command format:
$ p4 reopen -c 1602 -t text+F //depot/my/file
You can now use this format:
$ p4 reopen --change 1602 --filetype text+F //depot/my/file
Note that long-form option names are preceded by two hyphens rather than the usual single hyphen.
Options that are rarely used have only a short form.
To display long-form option syntax for a particular command, use the
--explain
option. For example:
$ p4 reopen --explain
This will generate output like the following:
--omit-moved (-1): disables following renames resulting from 'p4 move' --filetype (-t): specifies the filetype to be used. --change (-c): specifies the changelist to use for the command. Usage: reopen [-c changelist#] [-t type] files...
To display information about a single option for a command, specify the
option name with --explain
. For example:
$ p4 revert --explain -k