A.20 library(main): Provide entry point for scripts
All
Application
Manual
Name
Summary
Help
Documentation
Reference manual
The SWI-Prolog library
library(main): Provide entry point for scripts
main/0
argv_options/3
Packages
Availability:
:- use_module(
library(main)
).
(can be autoloaded)
main
Call
main/1
using the passed command-line arguments. Before calling
main/1
this predicate installs a signal handler for
SIGINT
(Control-C) that terminates the process with status 1.