From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id KAA13846; Fri, 19 Apr 2002 10:54:22 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id KAA13842 for caml-list@pauillac.inria.fr; Fri, 19 Apr 2002 10:54:22 +0200 (MET DST) Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id IAA10539 for ; Fri, 19 Apr 2002 08:01:46 +0200 (MET DST) Received: from mailgate1.nau.edu (mailgate1.nau.edu [134.114.96.58]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g3J61eL26678 for ; Fri, 19 Apr 2002 08:01:45 +0200 (MET DST) Received: from CONVERSION-DAEMON.mailgate1.nau.edu by mailgate1.nau.edu (PMDF V6.1-1 #39126) id <0GUS00I01WQQ12@mailgate1.nau.edu> for caml-list@inria.fr; Thu, 18 Apr 2002 23:01:38 -0700 (MST) Received: from deathonastick.org (student2231.student.nau.edu [134.114.183.105]) by mailgate1.nau.edu (PMDF V6.1-1 #39126) with SMTP id <0GUS00IOHWQQLW@mailgate1.nau.edu> for caml-list@inria.fr; Thu, 18 Apr 2002 23:01:38 -0700 (MST) Received: by deathonastick.org (sSMTP sendmail emulation); Fri, 19 Apr 2002 05:58:57 +0000 Date: Fri, 19 Apr 2002 05:58:57 +0000 From: Brock Subject: [Caml-list] command arguments sticking together In-reply-to: <"from Andrej.Bauer"@andrej.com> To: caml-list@inria.fr Message-id: <20020419055857.E12446@deathonastick.org> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline User-Agent: Mutt/1.2.5i References: Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I am attempting to write an ocaml program which acts as a script when a data file for it starts with #!/myscript option1 option2 ... The problem is that I am using the included Arg module to parse the arguments, but when myscript is called it only sees one argument consisting of all the arguments stuffed together... which the Arg routines don't care for much. So does anyone have any ideas to work around this? --Brock ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners