category
command_line_option
Category for defining command-line options. Import this category into objects that represent individual command-line options and override the predicates as needed.
logtalk_load(command_line_options(loader))staticPublic predicates
check/0
Checks if the command-line option definition is valid. Throws an error if the definition is invalid.
staticcheck - one_or_errorvalid/0
Succeeds if the command-line option definition is valid. Fails otherwise.
staticvalid - zero_or_onename/1
Name used to identify this option in the parsed results. This predicate must be overridden. No default.
staticname(Name)name(?atom) - zero_or_oneshort_flags/1
List of single-character short flags for this option (e.g., [v] for -v). Default is an empty list.
staticshort_flags(Flags)short_flags(-list(character)) - onelong_flags/1
List of long flags for this option (e.g., [verbose] for --verbose). Default is an empty list.
staticlong_flags(Flags)long_flags(-list(atom)) - onetype/1
Option value type. One of boolean, atom, integer, float, or term. Default is term.
statictype(Type)type(-atom) - onedefault/1
Default value for this option if any.
staticdefault(Default)default(-term) - zero_or_onemeta/1
Metasyntactic variable name for the help text (e.g., 'FILE'). Default is an empty atom.
staticmeta(Meta)meta(-atom) - onehelp/1
Help text for this option. Can be an atom or a list of atoms for pre-broken lines. Default is an empty atom.
statichelp(Help)help(-atom) - onehelp(-list(atom)) - oneProtected predicates
(no local declarations; see entity ancestors if any)
Private predicates
(no local declarations; see entity ancestors if any)
Operators
(none)
See also