From: "David C. Hoos, Sr." <david.c.hoos.sr@ada95.com>
Subject: Re: Command line parameters
Date: 1999/01/17
Date: 1999-01-17T00:00:00+00:00 [thread overview]
Message-ID: <VRrg2kmQ#GA.175@pet.hiwaay.net> (raw)
In-Reply-To: 77tm5p$kls$1@scelto.ts.kiev.ua
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.
next prev parent reply other threads:[~1999-01-17 0:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-01-17 0:00 Command line parameters Igor Izvarin
1999-01-17 0:00 ` David C. Hoos, Sr. [this message]
1999-01-17 0:00 ` Craig Garrett
1999-01-18 0:00 ` Jerry van Dijk
[not found] <m-bartz-1701950936420001@macgalois.ee.memst.edu>
1995-01-17 17:10 ` Command Line Parameters fewellsj
1995-01-24 2:42 ` David Weller
1995-01-24 16:09 ` Tarjei Jensen
1995-01-26 12:54 ` Mats Weber
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox