GNU
|
Liberty Eiffel
|
Automated Tests
|
Wiki
|
Savannah project
|
Debian packages
|
Documentation
>
libraries
>
COMMAND_LINE_ARGUMENTS
+
Point of view
ANY
ANY
INTERNALS_HANDLER
TYPED_INTERNALS
All features
class COMMAND_LINE_ARGUMENTS
Summary
top
An object of that class manages a command-line parsing.
Direct parents
Insert list:
ARGUMENTS
Overview
top
Creation features
make
(a_argument:
COMMAND_LINE_ARGUMENT
)
Exported features
set_helper
(a_helper:
PROCEDURE
[
TUPLE 1
[COMMAND_LINE_ARGUMENTS]])
parse_command_line
:
BOOLEAN
usage
(stream:
OUTPUT_STREAM
)
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
set_helper
(a_helper:
PROCEDURE
[
TUPLE 1
[COMMAND_LINE_ARGUMENTS]])
effective procedure
top
parse_command_line
:
BOOLEAN
effective function
top
usage
(stream:
OUTPUT_STREAM
)
effective procedure
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