I'm trying to write a small script that launches Beyond Compare when I do an svn diff. I got it working up until so far:
open -a /Applications/Beyond\ Compare.app "$6" "$7"
To get the full functionality, I need to add arguments with a hyphen (-, dash, minus sign)
open -a /Applications/Beyond\ Compare.app "$6" "$7" -title1="$3" -title2="$5" -readonly
But when I do that, the open command interprets the hyphens as flags for itself and exits with:
open: invalid option -- i
usage: ...
I tried "quoting" the entire command or - escaping the options. What should I do to get the extra functionality?