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,start X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.nethere.com!news.nethere.com.POSTED!not-for-mail NNTP-Posting-Date: Tue, 04 Dec 2007 21:34:28 -0600 Newsgroups: comp.lang.ada Subject: DOS Options From: csampson@inetworld.net (Charles H. Sampson) Date: Tue, 4 Dec 2007 19:34:26 -0800 Message-ID: <1i8m324.g6pon43ql1ogN%csampson@inetworld.net> User-Agent: MacSOUP/2.8.2 (Mac OS X version 10.4.11 (PPC)) X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 75.49.44.90 X-Trace: sv3-Pf7adAeA4L6tIAcAq8W0gGwaLGdFPCx9Pma5eLMm9lnb4tA9MgnePYu4cP3A68uFBWu/I53DMMdxSBA!y17Ma+czESJlfprX5MK4UnJeq/qTgxL90jcm9U0/f/jBPn0tvNVCEg59MXwDB/9355pc8/peVGhI!7Xi3SxONF3AJ1yspCa5EUI6GDA== X-Complaints-To: abuse@nethere.com X-DMCA-Complaints-To: abuse@nethere.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.36 Xref: g2news1.google.com comp.lang.ada:18713 Date: 2007-12-04T19:34:26-08:00 List-Id: 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. I don't see how to do this. Command_Line.Argument doesn't accept a value of 0, which I remember as being the substring of the command line from the first non-blank up to the first suceeding blank. The note in A.15 says that Command_Name is the equivalent of argv (0), but in GNAT that's really just the command name, options stripped off. Does anybody have any suggestions? Charlie -- For an email response, insert "0824" between the 'c' and the 's'.