deferred class CLARG_WITH_ARG [E_]
Summary
Class invariant
Overview
Exported features
  • item: E_
    The argument value, if is_set
  • as_mandatory: CLARG_WITH_ARG [E_]
    Make the option mandatory (default for positionals)
  • prefix "+": CLARG_WITH_ARG [E_]
    Make the option mandatory (default for positionals)
  • as_optional: CLARG_WITH_ARG [E_]
    Make the option optional (default for options)
  • prefix "-": CLARG_WITH_ARG [E_]
    Make the option optional (default for options)
is_repeatable: BOOLEAN
is False
constant attribute
True if the argument is repeatable; False if unique.
prepare_parse
effective procedure
is_set_at (context: COMMAND_LINE_CONTEXT): BOOLEAN
effective function
True if the option is present and correct at the given context.
undo_parse (context: COMMAND_LINE_CONTEXT)
effective procedure
item: E_
deferred function
The argument value, if is_set
as_mandatory: CLARG_WITH_ARG [E_]
effective function
Make the option mandatory (default for positionals)
prefix "+": CLARG_WITH_ARG [E_]
effective function
Make the option mandatory (default for positionals)
as_optional: CLARG_WITH_ARG [E_]
effective function
Make the option optional (default for options)
prefix "-": CLARG_WITH_ARG [E_]
effective function
Make the option optional (default for options)
is_mandatory: BOOLEAN
deferred function
True if the argument must be set at least once.
is_optional: BOOLEAN
deferred function
True if the argument may not be set.
is_positional: BOOLEAN
deferred function
True if the argument is not introduced by a flag.
can_be_mandatory: BOOLEAN
deferred function
True if the argument can be set_mandatory(True).
can_be_optional: BOOLEAN
deferred function
True if the argument can be set_mandatory(False).
short: FIXED_STRING
deferred function
The short (one-letter) option flag introducing the argument, Void for positionals
deferred function
The long option flag introducing the argument, Void for positionals
usage: FIXED_STRING
deferred function
The option usage
force_index (a_index: INTEGER_32)
deferred procedure
Force a positional parameter to be valid only at the given index
set_mandatory (parent_option: CLARG_WITH_ARG [E_], enable: BOOLEAN)
deferred procedure
effective function
Arguments disjunction.
infix "or else" (other: COMMAND_LINE_ARGUMENT): COMMAND_LINE_ARGUMENT
effective function
Arguments disjunction.
effective function
Arguments conjunction.
infix "and then" (other: COMMAND_LINE_ARGUMENT): COMMAND_LINE_ARGUMENT
effective function
Arguments conjunction.
prefix "not": COMMAND_LINE_ARGUMENT
effective function
(tentative; don't use it, the semantics is not well defined)
is_set: BOOLEAN
deferred function
True if the option is present and correct.
parse_command_line (context: COMMAND_LINE_CONTEXT): COMMAND_LINE_CONTEXT
deferred function
usage_summary (stream: OUTPUT_STREAM)
deferred procedure
usage_details (stream: OUTPUT_STREAM)
deferred procedure
writable attribute
index: INTEGER_32
writable attribute
out_in_tagged_out_memory
effective procedure
Append terse printable representation of current object in tagged_out_memory.
argument_count: INTEGER_32
effective function
Number of arguments given to command that started system execution (command name does not count).
argument (i: INTEGER_32): STRING
effective function
i th argument of command that started system execution Gives the command name if i is 0.
command_name: STRING
effective function