From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.0 required=5.0 tests=AWL,SPF_NEUTRAL autolearn=disabled version=3.1.3 Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 8611CBC69 for ; Wed, 22 Aug 2007 00:21:35 +0200 (CEST) Received: from el-out-1112.google.com (el-out-1112.google.com [209.85.162.181]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l7LMLYFM023456 for ; Wed, 22 Aug 2007 00:21:35 +0200 Received: by el-out-1112.google.com with SMTP id n30so256544elf for ; Tue, 21 Aug 2007 15:21:34 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=CnAtXz6/XtXho6kJBN+TKQS8ZoS4uPl2ShfXLJyUyMZQRm2dnf7s5TaaDa/+/vdM8yIXs9ALwglyp8Iwj8Q0+3FSFkCRmQrh71s/4h5irJOw1lmvgSsA7S8SGO7osGOf51xGTJLpXqx6N9LZUl3IKPEx2dBs6rSKDuKxWpq4DNM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Mz076pzkW6s7v3TYGyvViqwUGP0Pcya6tuMxTCvxSvJgPlLCKmJ+NedPtnU/ZOrs+zrV+MTQcPUu9sbeDNzhMKit5QIWXuoJ6O2zfCTtmchGz4XNeFKIab5TYJSFkrOZod/bc/MTr2XL2HgpZgYmOMfVC3BOEyuRHNVPJrQTlbc= Received: by 10.142.234.12 with SMTP id g12mr440214wfh.1187734893223; Tue, 21 Aug 2007 15:21:33 -0700 (PDT) Received: by 10.143.168.5 with HTTP; Tue, 21 Aug 2007 15:21:33 -0700 (PDT) Message-ID: <9d3ec8300708211521tb3c8fdo5a93d914f6264429@mail.gmail.com> Date: Wed, 22 Aug 2007 00:21:33 +0200 From: "Till Varoquaux" To: "Luca de Alfaro" Subject: Re: [Caml-list] ocamlp3l and command line options: how? Cc: caml-list@yquem.inria.fr In-Reply-To: <28fa90930708211443n6ad5a549u74c6d0117717ba69@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <28fa90930708211443n6ad5a549u74c6d0117717ba69@mail.gmail.com> X-j-chkmail-Score: MSGID : 46CB656E.004 on discorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at discorde with ID 46CB656E.004 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; cheers:01 command-line:01 command-line:01 foo:01 beginner's:01 ocaml:01 bug:01 beginners:01 wrote:01 parsing:01 caml-list:01 caml-list:01 bin:01 caml:02 caml:02 The Arg module use a cursor to know which argument it is is currently parsing. You can therefor ignore the first argument like this: incr Arg.current before calling Arg.parse Cheers, Till On 8/21/07, Luca de Alfaro wrote: > I am trying to use ocamlp3l to parallelize some code. Using the skeleton > paradigm was a lot of fun and quite easy, but I am stumbling on the easiest > of issues... > > My code needs some command-line options, and I am processing them with the > Arg package. The ocamlp3l manual does not anything about what to do for > command-line options. > > I cannot simly run: > > ./foo -p3lroot -i blah -o boink > > because Arg tells me that it doesn't know what to do with -p3lroot. > Fine, but, then how do I do? It's not really feasible for me to do without > command-line options... > > Many thanks in advance, > > Luca > > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: > http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs > > -- http://till-varoquaux.blogspot.com/