DocAda(tm) is a productivity tool of KSCE

Prev | Up | ____ | Back | Forward
About DocAda Light: Preface / Preliminary / Help / TOC / Copyright
DocAda Online at the Ada Home: Complete RM95 / Updates / News

A.15 The Package Command_Line

The package Command_Line allows a program to obtain the values of its arguments and to set the exit status code to be returned on normal termination.

Static Semantics

The library package Ada.Command_Line has the following declaration:

   
       package Ada.Command_Line is
         pragma Preelaborate(Command_Line);

         function Argument_Count return Natural;

         function Argument (Number : in Positive) return String;

         function Command_Name return String;

         type Exit_Status is implementation-defined integer type;

         Success : constant Exit_Status;
         Failure : constant Exit_Status;

         procedure Set_Exit_Status (Code : in Exit_Status);

       private
         ... -- not specified by the language
       end Ada.Command_Line;


       function Argument_Count return Natural;
    
       function Argument (Number : in Positive) return String;
    
       function Command_Name return String;
    
       procedure Set_Exit_Status (Code : in Exit_Status);

Implementation Permissions

An alternative declaration is allowed for package Command_Line if different functionality is appropriate for the external execution environment.

About DocAda Light: Preface / Preliminary / Help / TOC / Copyright
DocAda Online at the Ada Home: Complete RM95 / Updates / News
Prev | Up | ____ | Back | Forward


Copyright © 1994-1997 by Kempe Software Capital Enterprises. All Rights Reserved. For comments on this DocAda(tm) hypertext document, please write to KSCE, at docada@ksce.com