https://www.jetbrains.com/help/idea/opening-files-from-command-line.html#8d997325
refer this url. They updated the feature recently as the site says.