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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ed2c270d51f000e1 X-Google-Attributes: gid103376,public From: gabrielb@rational.com (Gabriel Bereny) Subject: Re: HELP: how to get parameters given to an exe ? Date: 1997/03/27 Message-ID: <5heugn$rji@rational.rational.com>#1/1 X-Deja-AN: 228880332 References: Organization: Rational Software Corporation Newsgroups: comp.lang.ada Date: 1997-03-27T00:00:00+00:00 List-Id: Ingrid CHESSEL & David EXCOFFIER (linfo14@univ-savoie.fr) wrote: : I'd want to code in Ada83 to following thing: : I wan't the user be able to pass parameters after the name of the exe file : i wrote. : e.g.: myprog arg1 arg2 ... : like in Unix: ls -l (i want to get this "-l") parmeter : or Dos: dir a: ( the "a:") : Is there a possibility to code this kinda thing in Ada 83, under Unix ??? : (I think under Unix or dos, the code in Ada might be the same...) If you have POSIX bindings available, use the function Posix_Process_Environment.Argument_List to get the list of arguments and then the string list operations in the package Posix to manipulate the list and extract the arguments which interest you. Gabriel Bereny Rational Software Corporation