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,7f057fd3e6878bac X-Google-Attributes: gid103376,public From: "David C. Hoos, Sr." Subject: Re: Command line parameters Date: 1999/01/17 Message-ID: #1/1 X-Deja-AN: 433781663 References: <77tm5p$kls$1@scelto.ts.kiev.ua> Newsgroups: comp.lang.ada X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Date: 1999-01-17T00:00:00+00:00 List-Id: Igor Izvarin wrote in message <77tm5p$kls$1@scelto.ts.kiev.ua>... >Hi, > >Could anybody explain me how I can obtain filename parameter from command >line: > >programe.exe -a -b -c120 -d240 filename.ext > >because > >FILENAME: STRING(1..80); > >FILENAME := ARGUMENT(I); > There is no need to declare a string for the filename, as the command name is available as Ada.Command_Line.Command_Name; If you must assign it to your own string, you can do so without knowing its length as follows: Filename : constant String := Ada.Command_Line.Command_Name; Which Ada95 compiler is used makes no difference.