object
command_line_options
Command line options parsing predicates. Uses object-based option specifications with the command_line_option category.
logtalk_load(command_line_options(loader))static, context_switching_callsPublic predicates
parse/4
Parses the arguments ApplArguments according to the option objects OptionObjects using default parsing options.
staticparse(OptionObjects,ApplArguments,Options,PositionalArguments)parse(+list(object),+list(atom),-list,-list(atom)) - one_or_errorparse/5
Parses the arguments ApplArguments according to the option objects OptionObjects and the parsing options ParseOptions. Options is a list of parsed options as Name(Value) terms by default (or Func(Name,Value) when the output_functor(Func) parse option is used). PositionalArguments are the remaining non-dashed arguments. ParseOptions include output_functor(Func), duplicated_flags(Keep) (one of keepfirst, keeplast, keepall; default keeplast), and allow_empty_flag_spec(Bool) (default true).
staticparse(OptionObjects,ApplArguments,Options,PositionalArguments,ParseOptions)parse(+list(object),+list(atom),-list,-list(atom),+list) - one_or_errorhelp/2
Synthesizes a help text Help as an atom from the option objects OptionObjects using default help options.
statichelp(OptionObjects,Help)help(+list(object),-atom) - one_or_errorhelp/3
Synthesizes a help text Help as an atom from the option objects OptionObjects using the given HelpOptions. HelpOptions include line_width(Width) (default 80), min_help_width(Width) (default 40), break_long_flags(Boolean) (default false), and suppress_empty_meta(Boolean) (default true).
statichelp(OptionObjects,Help,HelpOptions)help(+list(object),-atom,+list) - one_or_errorProtected predicates
(no local declarations; see entity ancestors if any)
Private predicates
(no local declarations; see entity ancestors if any)
Operators
(none)
See also