GNU
|
Liberty Eiffel
|
Automated Tests
|
Wiki
|
Savannah project
|
Debian packages
|
Documentation
>
libraries
>
CLARG_PARSER
+
Point of view
COMMAND_LINE_ARGUMENT
ANY
INTERNALS_HANDLER
TYPED_INTERNALS
COMMAND_LINE_ARGUMENTS
COMMAND_LINE_ARGUMENT
CLARG_PARSER
All features
deferred class CLARG_PARSER
Summary
top
Direct parents
Insert list:
ARGUMENTS
,
CLARG_OPTIONS
Known children
Insert list:
CLARG_WITH_ARG
,
CLARG_WITH_ARGS
Class invariant
top
short
/= Void implies
short
.count = 1
Overview
top
Exported features
name
:
FIXED_STRING
usage
:
FIXED_STRING
index
:
INTEGER_32
is_mandatory
:
BOOLEAN
is_set
:
BOOLEAN
force_index
(a_index:
INTEGER_32
)
is_optional
:
BOOLEAN
is_positional
:
BOOLEAN
can_be_mandatory
:
BOOLEAN
can_be_optional
:
BOOLEAN
out_in_tagged_out_memory
Append terse printable representation of current object in
tagged_out_memory
.
parse_command_line
(context:
COMMAND_LINE_CONTEXT
):
COMMAND_LINE_CONTEXT
usage_summary
(stream:
OUTPUT_STREAM
)
usage_details
(stream:
OUTPUT_STREAM
)
set_mandatory
(parent_option: CLARG_PARSER, enable:
BOOLEAN
)
is_set_at
(context:
COMMAND_LINE_CONTEXT
):
BOOLEAN
argument_count
:
INTEGER_32
Number of arguments given to command that started system execution (command name does not count).
argument
(i:
INTEGER_32
):
STRING
i
th argument of command that started system execution Gives the command name if
i
is 0.
command_name
:
STRING
short
:
FIXED_STRING
long
:
FIXED_STRING
name
:
FIXED_STRING
writable attribute
top
usage
:
FIXED_STRING
writable attribute
top
index
:
INTEGER_32
writable attribute
top
is_mandatory
:
BOOLEAN
writable attribute
top
is_set
:
BOOLEAN
deferred function
top
force_index
(a_index:
INTEGER_32
)
effective procedure
top
ensure
index
= a_index
is_optional
:
BOOLEAN
effective function
top
is_positional
:
BOOLEAN
effective function
top
can_be_mandatory
:
BOOLEAN
is True
constant attribute
top
can_be_optional
:
BOOLEAN
effective function
top
out_in_tagged_out_memory
effective procedure
top
Append terse printable representation of current object in
tagged_out_memory
.
parse_command_line
(context:
COMMAND_LINE_CONTEXT
):
COMMAND_LINE_CONTEXT
effective function
top
usage_summary
(stream:
OUTPUT_STREAM
)
effective procedure
top
usage_details
(stream:
OUTPUT_STREAM
)
effective procedure
top
set_mandatory
(parent_option: CLARG_PARSER, enable:
BOOLEAN
)
effective procedure
top
is_set_at
(context:
COMMAND_LINE_CONTEXT
):
BOOLEAN
deferred function
top
argument_count
:
INTEGER_32
effective function
top
Number of arguments given to command that started system execution (command name does not count).
ensure
Result >= 0
argument
(i:
INTEGER_32
):
STRING
effective function
top
i
th argument of command that started system execution Gives the command name if
i
is 0.
require
i >= 0
i <=
argument_count
ensure
Result /= Void
command_name
:
STRING
effective function
top
short
:
FIXED_STRING
writable attribute
top
long
:
FIXED_STRING
writable attribute
top