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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ed4552e228419ca1,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!b2g2000vbo.googlegroups.com!not-for-mail From: A famous IT technical writer Newsgroups: comp.lang.ada Subject: Passing shell arguments to Ada programs the Linux way Date: Sat, 2 Jul 2011 07:47:13 -0700 (PDT) Organization: http://groups.google.com Message-ID: <958e152b-8b68-4381-9393-6b21e9c61eda@b2g2000vbo.googlegroups.com> NNTP-Posting-Host: 77.194.224.80 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1309618034 9054 127.0.0.1 (2 Jul 2011 14:47:14 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 2 Jul 2011 14:47:14 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: b2g2000vbo.googlegroups.com; posting-host=77.194.224.80; posting-account=VIpSKAoAAABOBmKMHEQ-qUK32LYPuQsf User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUALESNKRC X-HTTP-UserAgent: Mozilla/5.0 (X11; Linux i686; rv:5.0) Gecko/20100101 Firefox/5.0,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:21038 Date: 2011-07-02T07:47:13-07:00 List-Id: Hi any Ada fan or beginner, You may find a solution on how to pass shell arguments to an Ada program the Linux way. The code has been tested on Linux. As it makes use of the GCC suite, the code is usable under any operating system which implements the GCC suite. Here is the URL link where to look at: http://vouters.dyndns.org/tima/Linux-Ada-getopt_long-Passing_shells_arguments_to_programs-The_Linux_way.html The code in this paper is a C to Ada translation. You may find the corresponding C original code at this URL link: http://vouters.dyndns.org/tima/All-OS-C-getopt_long-Passing_shells_arguments_to_programs-The_Linux_way.html In the hope this may help you coding very user-friendly man/machine interfaces. Yours truly,