deferred class CLARG_WITH_ARGS [E_]
Summary
Direct parents
Inherit list: COMMAND_LINE_TYPED_ARGUMENT, TRAVERSABLE
Insert list: CLARG_PARSER
Known children
Inherit list: CLARG_CUSTOMS, CLARG_INTEGERS, CLARG_STRINGS
Class invariant
Overview
Features
{ANY}
{COMMAND_LINE_ARGUMENTS, COMMAND_LINE_ARGUMENT}
{}
{ANY}
{}
{ANY}
Other features:
{ANY}
Agent-based features:
{ANY}
Printing:
{ANY}
{ANY}
{}
Agent-based features:
{ANY}
{}
Indexing:
{ANY}
{ANY}
  • 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)
{ANY}
{ANY}
{COMMAND_LINE_ARGUMENTS, COMMAND_LINE_ARGUMENT}
{}
  • parent: CLARG_WITH_ARGS [E_]
    Internal technical trick to ensure that arguments with a non-standard behaviour (set_mandatory) are correctly managed.
{ANY}
{COMMAND_LINE_ARGUMENTS, COMMAND_LINE_ARGUMENT}
{}
{ANY}
parsing
{}
{CLARG_PARSER}
{ANY}
{}
Implementation of ARGUMENTS (do not use directly):
{}
patterns
{}
queries
{}
usage output helpers
{}
items: TRAVERSABLE[E_]
effective function
{ANY}
The argument value, if is_set
is_repeatable: BOOLEAN
is True
constant attribute
{ANY}
True if the argument is repeatable; False if unique.
is_set: BOOLEAN
effective function
{ANY}
True if the option is present and correct.
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
set_data (context: COMMAND_LINE_CONTEXT, data: STRING)
effective procedure
decode (data: STRING): E_
deferred function
{}
count: INTEGER_32
effective function
{ANY}
Number of available items in the hoard.
is_empty: BOOLEAN
effective function
{ANY}
Is the hoard empty ?
See also count.
lower: INTEGER_32
effective function
{ANY}
Minimum index.
upper: INTEGER_32
effective function
{ANY}
Maximum index.
item (i: INTEGER_32): E_
effective function
{ANY}
Item at the corresponding index i.
first: E_
effective function
{ANY}
The very first item.
last: E_
effective function
{ANY}
The last item.
new_iterator: ITERATOR[E_]
effective function
{ANY}
set: AVL_DICTIONARY[E_, COMMAND_LINE_CONTEXT]
writable attribute
{}
optional (a_short: ABSTRACT_STRING, a_long: ABSTRACT_STRING, a_name: ABSTRACT_STRING, a_usage: ABSTRACT_STRING)
effective procedure
{}
positional (a_name: ABSTRACT_STRING, a_usage: ABSTRACT_STRING)
effective procedure
{}
enumerate: ENUMERATE[E_]
effective function
{ANY}
get_new_iterator: ITERATOR[E_]
frozen
effective function
{ANY}
for_each (action: PROCEDURE[TUPLE[TUPLE 1[E_]]])
effective procedure
{ANY}
Apply action to every item of Current.
for_all (test: FUNCTION[TUPLE[TUPLE 1[E_]]]): BOOLEAN
effective function
{ANY}
Do all items satisfy test?
exists (test: FUNCTION[TUPLE[TUPLE 1[E_]]]): BOOLEAN
effective function
{ANY}
Does at least one item satisfy test?
aggregate (action: FUNCTION[TUPLE[TUPLE 2[E_, E_], E_]], initial: E_): E_
effective function
{ANY}
Aggregate all the elements starting from the initial value.
out_in_tagged_out_memory
effective procedure
{ANY}
Append terse printable representation of current object in tagged_out_memory.
generation: INTEGER_32
writable attribute
{ANY}
next_generation
effective procedure
{}
do_all (action: ROUTINE[TUPLE[TUPLE 1[E_]]])
frozen
effective procedure
{ANY}
Apply action to every item of Current.
_inline_agent1 (a: ROUTINE[TUPLE[TUPLE 1[E_]]], e: E_)
frozen
effective procedure
{}
valid_index (i: INTEGER_32): BOOLEAN
effective function
{ANY}
True when i is valid (i.e., inside actual bounds).
as_mandatory: CLARG_WITH_ARGS [E_]
effective function
{ANY}
Make the option mandatory (default for positionals)
prefix "+": CLARG_WITH_ARGS [E_]
effective function
{ANY}
Make the option mandatory (default for positionals)
as_optional: CLARG_WITH_ARGS [E_]
effective function
{ANY}
Make the option optional (default for options)
prefix "-": CLARG_WITH_ARGS [E_]
effective function
{ANY}
Make the option optional (default for options)
is_mandatory: BOOLEAN
deferred function
{ANY}
True if the argument must be set at least once.
is_optional: BOOLEAN
deferred function
{ANY}
True if the argument may not be set.
is_positional: BOOLEAN
deferred function
{ANY}
True if the argument is not introduced by a flag.
can_be_mandatory: BOOLEAN
deferred function
{ANY}
True if the argument can be set_mandatory(True).
can_be_optional: BOOLEAN
deferred function
{ANY}
True if the argument can be set_mandatory(False).
short: FIXED_STRING
deferred function
{ANY}
The short (one-letter) option flag introducing the argument, Void for positionals
deferred function
{ANY}
The long option flag introducing the argument, Void for positionals
usage: FIXED_STRING
deferred function
{ANY}
The option usage
force_index (a_index: INTEGER_32)
deferred procedure
{ANY}
Force a positional parameter to be valid only at the given index
set_mandatory (parent_option: CLARG_WITH_ARGS [E_], enable: BOOLEAN)
deferred procedure
parent: CLARG_WITH_ARGS [E_]
deferred function
{}
Internal technical trick to ensure that arguments with a non-standard behaviour (set_mandatory) are correctly managed.
effective function
{ANY}
Arguments disjunction.
infix "or else" (other: COMMAND_LINE_ARGUMENT): COMMAND_LINE_ARGUMENT
effective function
{ANY}
Arguments disjunction.
effective function
{ANY}
Arguments conjunction.
infix "and then" (other: COMMAND_LINE_ARGUMENT): COMMAND_LINE_ARGUMENT
effective function
{ANY}
Arguments conjunction.
prefix "not": COMMAND_LINE_ARGUMENT
effective function
{ANY}
(tentative; don't use it, the semantics is not well defined)
usage_summary (stream: OUTPUT_STREAM)
deferred procedure
usage_details (stream: OUTPUT_STREAM)
deferred procedure
detailed: BOOLEAN
deferred function
{}
writable attribute
{ANY}
index: INTEGER_32
writable attribute
{ANY}
parse_positional (context: COMMAND_LINE_CONTEXT): COMMAND_LINE_CONTEXT
effective function
{}
effective function
{}
effective function
{}
set_data_ (context: COMMAND_LINE_CONTEXT, data: STRING)
effective procedure
is_valid_data (data: STRING): BOOLEAN
deferred function
argument_count: INTEGER_32
effective function
{ANY}
Number of arguments given to command that started system execution (command name does not count).
argument (i: INTEGER_32): STRING
effective function
{ANY}
i th argument of command that started system execution Gives the command name if i is 0.
command_name: STRING
effective function
{ANY}
command_arguments: FAST_ARRAY[STRING]
frozen
once function
{}
Give access to arguments command line including the command name at index 0.
se_argc: INTEGER_32
{}
To implement command_arguments
se_argv (i: INTEGER_32): STRING
{}
To implement command_arguments
short_pattern: REGULAR_EXPRESSION
once function
{}
long_pattern: REGULAR_EXPRESSION
once function
{}
long_equal_pattern: REGULAR_EXPRESSION
once function
{}
is_short (arg: STRING, a_index: INTEGER_32): BOOLEAN
effective function
{}
is_long (arg: STRING): BOOLEAN
effective function
{}
is_long_equal (arg: STRING): BOOLEAN
effective function
{}
put_short (stream: OUTPUT_STREAM)
effective procedure
{}
put_long (stream: OUTPUT_STREAM)
effective procedure
{}