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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,cfb2002511b830ab,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.0.170 with SMTP id 10mr11077493pbf.2.1322218037845; Fri, 25 Nov 2011 02:47:17 -0800 (PST) Path: lh20ni16154pbb.0!nntp.google.com!news1.google.com!news.glorb.com!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Natasha Kerensikova Newsgroups: comp.lang.ada Subject: Starter project: getopt_long in Ada Date: Fri, 25 Nov 2011 10:47:17 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: Mime-Version: 1.0 Injection-Date: Fri, 25 Nov 2011 10:47:17 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="Mda950WjNwNLAFOE7yJXQw"; logging-data="18877"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/lCWiW9KBkLtaahiWZX7qP" User-Agent: slrn/0.9.9p1 (FreeBSD) Cancel-Lock: sha1:M5dmdGpAl43MNQozWPLrVAog+LE= Xref: news1.google.com comp.lang.ada:19160 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: 2011-11-25T10:47:17+00:00 List-Id: Hello, I have been tinkering with Ada for a while now, and I'm starting to feel ready to write code that is (somewhat) useful, and to publish it. I'm starting with a pure-Ada implementation of a getopt_long-like command line argument processor. The motivation is that next project will like have a command-line interface (before I go into other fancy I/O), and I like having long option names, especially in scripts I'm likely to re-read in the future. While I have found a few implementations of getopt, for getopt_long I have only found binding to the C function, which involves C strings and C arrays. So I wrote a Getopt_Long package, along with a test suite, that can be found at: http://fossil.instinctive.eu/natools/dir?ci=tip (I went against fossil advice of requiring going through a CAPTCHA before reading the files, it might change in the future if non-human hits do strain the server.) Everything is under ISC licence, so anybody can re-use it, even though it's currently still very young and under development. I would gladly welcome any constructive comment about this code, whether it's on the design, the implementation, the style, or anything else. The only reason for publishing it at this point is to ask for feedback in order to progress. I'm aware that a code review is a lot to ask, but I would really welcome any help towards improving my mastery of Ada. Thanks in advance for your comments and your help, Natasha