change -print in goto function to either -p or --print