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=0.2 required=5.0 tests=AWL,HTML_MESSAGE autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id B2E4FBC69 for ; Wed, 22 Aug 2007 03:30:55 +0200 (CEST) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.227]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l7M1UrLO015285 for ; Wed, 22 Aug 2007 03:30:55 +0200 Received: by nz-out-0506.google.com with SMTP id x7so12861nzc for ; Tue, 21 Aug 2007 18:30:53 -0700 (PDT) Received: by 10.142.233.9 with SMTP id f9mr4029wfh.1187746252067; Tue, 21 Aug 2007 18:30:52 -0700 (PDT) Received: by 10.142.80.4 with HTTP; Tue, 21 Aug 2007 18:30:52 -0700 (PDT) Message-ID: <28fa90930708211830r28a22dc0q82e4b480c312df87@mail.gmail.com> Date: Tue, 21 Aug 2007 18:30:52 -0700 From: "Luca de Alfaro" To: "Till Varoquaux" Subject: Re: [Caml-list] ocamlp3l and command line options: how? Cc: caml-list@yquem.inria.fr In-Reply-To: <9d3ec8300708211521tb3c8fdo5a93d914f6264429@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_143550_20767060.1187746252058" References: <28fa90930708211443n6ad5a549u74c6d0117717ba69@mail.gmail.com> <9d3ec8300708211521tb3c8fdo5a93d914f6264429@mail.gmail.com> X-Miltered: at discorde with ID 46CB91CD.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; command-line:01 runtime:01 cheers:01 command-line:01 foo:01 beginner's:01 ocaml:01 bug:01 runtime:01 cheers:01 foo:01 beginner's:01 ocaml:01 bug:01 beginners:01 ------=_Part_143550_20767060.1187746252058 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks, but the problem seems to be the opposite one.... ocamlp3l also uses Args, and once I tell it to parse the command-line options, the options such as -rootp3l do not seem to work any more. The problem is not that I need to avoid -rootp3l; the problem seems to be that the ocamlp3l runtime doesn't see its own options any more... Luca On 8/21/07, Till Varoquaux wrote: > > 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/ > ------=_Part_143550_20767060.1187746252058 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks, but the problem seems to be the opposite one.... ocamlp3l also uses Args, and once I tell it to parse the command-line options, the options such as -rootp3l do not seem to work any more.  The problem is not that I need to avoid -rootp3l; the problem seems to be that the ocamlp3l runtime doesn't see its own options any more...

Luca


On 8/21/07, Till Varoquaux < till.varoquaux@gmail.com> wrote:
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 <luca@dealfaro.org > 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/

------=_Part_143550_20767060.1187746252058--