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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,502b8ae4630fba59 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news1.google.com!news.glorb.com!out02b.usenetserver.com!news.usenetserver.com!in04.usenetserver.com!news.usenetserver.com!in03.usenetserver.com!news.usenetserver.com!pc02.usenetserver.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail Newsgroups: comp.lang.ada Subject: Re: DOS Options References: <1i8m324.g6pon43ql1ogN%csampson@inetworld.net> From: Stephen Leake Date: Wed, 05 Dec 2007 05:19:01 -0500 Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/22.1 (windows-nt) Cancel-Lock: sha1:YAa03Y2b6D/DGlT3nJPoci1rBho= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: 74b3247567b0fe05e48ed09858 Xref: g2news1.google.com comp.lang.ada:18720 Date: 2007-12-05T05:19:01-05:00 List-Id: csampson@inetworld.net (Charles H. Sampson) writes: > I've been using GNAT 3.15p for a long time to write DOS-like > project utiities to run on my Wintel desktop. I've just come up with a > case where I'd like to implement optional parameters. Since the utility > is DOS-like, I want to use the DOS form of optional parameters: attached > to the name of the command, separated by the '/' character. > > Does anybody have any suggestions? > > Charlie You'll have to post some specific examples, both of actual command lines that you want to handle, and of the Ada code you have tried to use to handle those parameters. I don't use the DOS command line, but I have dealt with several different styles of command-line parameter parsers. -- -- Stephe