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=unavailable autolearn_force=no version=3.4.4 Path: border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!aioe.org!.POSTED!not-for-mail From: Emanuel Berg Newsgroups: comp.lang.ada Subject: Re: 4 beginner's questions on the PL Ada Date: Sat, 10 Aug 2013 14:37:12 +0200 Organization: Aioe.org NNTP Server Message-ID: <87iozd7mdj.fsf@VLAN-3434.student.uu.se> References: <87ob96ajv6.fsf@VLAN-3434.student.uu.se> <87ob957mmb.fsf@VLAN-3434.student.uu.se> NNTP-Posting-Host: SWN/nubmpQxYKwY7hPy4YA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:kkLLYg+fdq7GwlHGJy/xdOPMt9Q= X-Original-Bytes: 1425 Xref: number.nntp.dca.giganews.com comp.lang.ada:182937 Date: 2013-08-10T14:37:12+02:00 List-Id: Emanuel Berg writes: >> 2. How do you get options from the CL? I.e., how do you do the C >> argv in Ada? > > Now, as an example, here is how I would answer my question: > > with Ada.Command_Line; > use Ada.Command_Line; > -- ... > Try_Hit : Boolean := (Argument_Count = 1 and > Argument(1) = "-h"); Holy - isn't Ada short circuited on "and"? -- Emanuel Berg - programmer (hire me! CV below) computer projects: http://user.it.uu.se/~embe8573 internet activity: http://home.student.uu.se/embe8573