deferred class CLARG_WITH_ARGS [E_]
Summary
Class invariant
Overview
Exported features
Other features:
Agent-based features:
Printing:
Agent-based features:
Indexing:
  • as_mandatory: CLARG_WITH_ARGS [E_]
    Make the option mandatory (default for positionals)
  • prefix "+": CLARG_WITH_ARGS [E_]
    Make the option mandatory (default for positionals)
  • as_optional: CLARG_WITH_ARGS [E_]
    Make the option optional (default for options)
  • prefix "-": CLARG_WITH_ARGS [E_]
    Make the option optional (default for options)
items: TRAVERSABLE[E_]
effective function
The argument value, if is_set
is_repeatable: BOOLEAN
is True
constant attribute
True if the argument is repeatable; False if unique.
is_set: BOOLEAN
effective function
True if the option is present and correct.
count: INTEGER_32
effective function
Number of available items in the hoard.
is_empty: BOOLEAN
effective function
Is the hoard empty ?
See also count.
lower: INTEGER_32
effective function
Minimum index.
upper: INTEGER_32
effective function
Maximum index.
item (i: INTEGER_32): E_
effective function
Item at the corresponding index i.
first: E_
effective function
The very first item.
last: E_
effective function
The last item.
new_iterator: ITERATOR[E_]
effective function
enumerate: ENUMERATE[E_]
effective function
get_new_iterator: ITERATOR[E_]
frozen
effective function
for_each (action: PROCEDURE[TUPLE[TUPLE 1[E_]]])
effective procedure
Apply action to every item of Current.
for_all (test: FUNCTION[TUPLE[TUPLE 1[E_]]]): BOOLEAN
effective function
Do all items satisfy test?
exists (test: FUNCTION[TUPLE[TUPLE 1[E_]]]): BOOLEAN
effective function
Does at least one item satisfy test?
aggregate (action: FUNCTION[TUPLE[TUPLE 2[E_, E_], E_]], initial: E_): E_
effective function
Aggregate all the elements starting from the initial value.
out_in_tagged_out_memory
effective procedure
Append terse printable representation of current object in tagged_out_memory.
generation: INTEGER_32
writable attribute
do_all (action: ROUTINE[TUPLE[TUPLE 1[E_]]])
frozen
effective procedure
Apply action to every item of Current.
valid_index (i: INTEGER_32): BOOLEAN
effective function
True when i is valid (i.e., inside actual bounds).
as_mandatory: CLARG_WITH_ARGS [E_]
effective function
Make the option mandatory (default for positionals)
prefix "+": CLARG_WITH_ARGS [E_]
effective function
Make the option mandatory (default for positionals)
as_optional: CLARG_WITH_ARGS [E_]
effective function
Make the option optional (default for options)
prefix "-": CLARG_WITH_ARGS [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
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)
writable attribute
index: INTEGER_32
writable attribute
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