Goal is executed just before entering the top level. This 
option may appear multiple times. See section 
2.3 for details. If no initialization goal is present the system 
calls version/0 
to print the welcome message. The welcome message can be suppressed with
--quiet, but also with -g true. goal 
can be a complex term. In this case quotes are normally needed to 
protect it from being expanded by the shell. A safe way to run a goal 
non-interactively is below. If go/0/s ucceeds
-g halt causes the process to stop with exit 
code 0. If it fails, the exit code is 1 and it it raises an exception 
the exit code is 2.
% swipl <options> -g go -g halt