Did you know ... Search Documentation:
Pack prolog_library_collection -- prolog/cli_arguments.pl
PublicShow source
 cli_arguments(+Usages:list(list(atom)), +LongSpecs:dict, +ShortSpecs:dict, -Options:options, -PositionalArguments:list(atom)) is det
Parse the arguments Arguments (as list of atoms) according to Specs. Any runtime arguments (typically terminated by '--') are assumed to be removed already.
Arguments:
Options-
An options dictionary containing the parsed flags.
PositionalArguments-
The remaining non-flag or ‘positional’ arguments.  Positional
arguments are allows to appear interspersed with flag
arguments (although it is good practice to put positional
arguments last).
Errors
- Dashed args not in Specs are not permitted and will raise an error.