A.27 library(main): Provide entry point for scripts
All Application Manual Name SummaryHelp

  • Documentation
    • Reference manual
      • The SWI-Prolog library
        • library(main): Provide entry point for scripts
          • main/0
          • argv_options/3
          • argv_options/4
          • argv_usage/1
          • cli_parse_debug_options/2
          • cli_debug_opt_type/3
          • cli_debug_opt_help/2
          • cli_debug_opt_meta/2
          • cli_enable_development_system/0
    • Packages
Availability::- use_module(library(main)).(can be autoloaded)
Source[det]cli_parse_debug_options(+OptionsIn, -Options)
Parse certain commandline options for debugging and development purposes. Options processed are below. Note that the option argument is an atom such that these options may be activated as e.g., --debug='http(_)'.
debug(Topic)
Call debug(Topic). See debug/1 and debug/3.
spy(Predicate)
Place a spy-point on Predicate.
gspy(Predicate)
As spy using the graphical debugger. See tspy/1.
interactive(true)
Start the Prolog toplevel after main/1 completes.