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,2d8bc00b1190f5f9 X-Google-Attributes: gid103376,public From: "James S. Rogers" Subject: Re: GETARG in Ada? Date: 1999/02/28 Message-ID: <7bahcm$aru@bgtnsc03.worldnet.att.net>#1/1 X-Deja-AN: 449804649 References: <7b9r2g$lha$1@netra.msu.montana.edu> <0PjuprqY#GA.177@pet.hiwaay.net> <7ba3n9$kbr@drn.newsguy.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Organization: AT&T WorldNet Services Newsgroups: comp.lang.ada Date: 1999-02-28T00:00:00+00:00 List-Id: bill@cool wrote in message <7ba3n9$kbr@drn.newsguy.com>... > > >it should be possible to call the Unix getopt() function from Ada. why >not do this? getopt is designed to break command line arguments >easily. This is useful if you are parsing options such as "-f File_Name". It is, of course, only useful if you are using UNIX-like operating systems. For simple command line arguments without accompanying arguments, or when not using UNIX, the Ada.Command_Line package is simpler. It is the only reasonably portable answer. Some operating systems do not support command line arguments. The LRM states that Ada.Command_Line is not supported on those operating systems. Jim Rogers Colorado Springs, Colorado