PhpStorm をアップデートしても、pstorm コマンドが古いバージョンのままで、CLI 経由では古いバージョンが起動することがあった。
新しいバージョンを GUI で起動して、下記手順で再インストールすれば ok。
-
Shift
+Shift
でSearch Everywhere
起動 -
command-line
を入力 -
Create Command-line Launcher
を実行
-h
オプションでヘルプが見れる。pstorm diff
で差分が見れたりする。(表示は、IDEに出る)
$ pstorm -h
Usage:
/usr/local/bin/pstorm -h |-? | --help
/usr/local/bin/pstorm [-l|--line line] file[:line]
/usr/local/bin/pstorm diff <left> <right>
/usr/local/bin/pstorm merge <local> <remote> [base] <merged>