From: "James S. Rogers" <jimmaureenrogers@worldnet.att.net>
Subject: Re: GETARG in Ada?
Date: 1999/02/28
Date: 1999-02-28T00:00:00+00:00 [thread overview]
Message-ID: <7bahcm$aru@bgtnsc03.worldnet.att.net> (raw)
In-Reply-To: 7ba3n9$kbr@drn.newsguy.com
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
next prev parent reply other threads:[~1999-02-28 0:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-02-27 0:00 GETARG in Ada? Lou Glassy
1999-02-27 0:00 ` bob
1999-02-27 0:00 ` David C. Hoos, Sr.
1999-02-27 0:00 ` bill
1999-02-28 0:00 ` James S. Rogers [this message]
1999-03-02 0:00 ` Stephen Leake
1999-03-02 0:00 ` nabbasi
1999-02-28 0:00 ` Matthew Heaney
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox