How to use Octave app on macOS Mojave
You can use the following to open Octave with a file:

open -a "Octave" /path/to/file


If you want, alias this to octave by adding this line to your ~/.bash_profile:

alias octave="open -a \"Octave\""


Now you should be able to use octave /path/to/file anywhere.