From: "Till Varoquaux" <till.varoquaux@gmail.com>
To: "Luca de Alfaro" <luca@dealfaro.org>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] ocamlp3l and command line options: how?
Date: Wed, 22 Aug 2007 00:21:33 +0200 [thread overview]
Message-ID: <9d3ec8300708211521tb3c8fdo5a93d914f6264429@mail.gmail.com> (raw)
In-Reply-To: <28fa90930708211443n6ad5a549u74c6d0117717ba69@mail.gmail.com>
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/
next prev parent reply other threads:[~2007-08-21 22:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-21 21:43 Luca de Alfaro
2007-08-21 22:21 ` Till Varoquaux [this message]
2007-08-22 1:30 ` [Caml-list] " Luca de Alfaro
2007-08-22 6:06 ` Maxence Guesdon
2007-08-22 6:21 ` Luca de Alfaro
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9d3ec8300708211521tb3c8fdo5a93d914f6264429@mail.gmail.com \
--to=till.varoquaux@gmail.com \
--cc=caml-list@yquem.inria.fr \
--cc=luca@dealfaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox