From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f3b5990e1a65f421 X-Google-Attributes: gid103376,public From: dale@cs.rmit.edu.au (Dale Stanbrough) Subject: Re: Command line arguments Date: 1998/10/12 Message-ID: #1/1 X-Deja-AN: 400069461 References: X-Complaints-To: abuse@cs.rmit.edu.au X-Trace: emu.cs.rmit.edu.au 908150039 12504 131.170.27.23 (11 Oct 1998 23:53:59 GMT) Organization: RMIT NNTP-Posting-Date: 11 Oct 1998 23:53:59 GMT Newsgroups: comp.lang.ada Date: 1998-10-11T23:53:59+00:00 List-Id: Kristian J Allen wrote: " Hello, I am trying to take in arguments via the command line but am encountering some problems. What i'm trying to do is: > Any tips are greatly appreciated. Kristian" If you look at the Language Reference Manual (the online versions have an index where you could look up command line arguments) you'll see... package Ada.Command_Line... Use it like this... with Ada.Command_Line; use Ada.Command_Line; with Text_IO; use Text_IO; procedure Demo is begin for i in 1..Argument_Count loop put (Argument (i)); new_line; end loop; end; Look in the LRM for how to get the program name. Dale