AdaCL.EAstrings.OS.Command_Line

More...

Entities

Subprograms

Argument
Argument_Count
Command_Name

Description

This package allows a program to obtain the values of its arguments and the name that it was invoked with in an encoding-aware way. It is assumed that the command name and the arguments are encoded in the encoding that OS.OS_Encoding reports.

Argument [source]

37 function Argument (Number : in Positive) return EAstring;

Returns the argument at position Number. If Number is outside the range 1..Argument_Count, then Constraint_Error is propagated.

Number of type Positive
Return value

Argument_Count [source]

33 function Argument_Count return Natural renames
34 Ada.Command_Line.Argument_Count;

Returns the number of strings passed as arguments to the program.

Command_Name [source]

41 function Command_Name return EAstring;

Returns the name of the command that invoked the program.

Return value