+
Point of view
All features
class SAME_EXECUTABLES
Summary
Check if two files given as arguments are (quite) the same executables files. Terminate execution with the corresponding exit status code.
Direct parents
Insert list: ARGUMENTS
Overview
Creation features
{}
Features
{}
{ANY}
{}
{ANY}
{}
Implementation of ARGUMENTS (do not use directly):
{}
writable attribute
{}
writable attribute
{}
make
effective procedure
{ANY}
same_executables (path1: STRING, path2: STRING): BOOLEAN
effective function
{}
exists_and_is_readable_check (path: STRING)
effective procedure
{}
argument_count: INTEGER_32
effective function
{ANY}
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
{ANY}
i th argument of command that started system execution Gives the command name if i is 0.
require ensure
  • Result /= Void
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.
This is a once function, so you can modify command-line arguments! (NOTE: just be sure not to remove the first argument, although you may change it)
ensure
  • not Result.is_empty
se_argc: INTEGER_32
{}
To implement command_arguments
se_argv (i: INTEGER_32): STRING
{}
To implement command_arguments