From: William Lovas <wlovas@stwing.upenn.edu>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Arg parsing
Date: Tue, 26 Oct 2004 16:13:39 -0400 [thread overview]
Message-ID: <20041026201338.GA29858@force.stwing.upenn.edu> (raw)
In-Reply-To: <Pine.LNX.4.58.0410262153470.18883@eiger.cip.physik.uni-muenchen.de>
Hi Thomas,
On Tue, Oct 26, 2004 at 09:56:30PM +0200, Thomas Fischbacher wrote:
>
> I think it would be helpful if ocaml had an '--' arg that tells it to stop
> its own arg parsing and pass the following args on to the program started,
> as in:
>
> tf@ouija:~$ perl -e 'print @ARGV' -- one tooth ree
> onetoothree
You can do this with the standard Arg module. For example:
Arg.parse [...; ("--", Arg.Rest anon_fun, " stop parsing options")]
anon_fun
usage_msg
See the Arg module's documentation for details.
cheers,
William
next prev parent reply other threads:[~2004-10-26 20:13 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-26 19:56 Thomas Fischbacher
2004-10-26 20:13 ` William Lovas [this message]
2004-10-27 18:17 ` [Caml-list] " Thomas Fischbacher
2004-10-27 22:13 ` John Prevost
2004-10-28 12:44 ` Thomas Fischbacher
2004-10-28 14:56 ` John Prevost
2004-11-04 14:42 ` Thomas Fischbacher
2004-11-04 15:28 ` John Prevost
2004-11-04 20:40 ` Thomas Fischbacher
2004-10-26 21:05 ` Problem with location sejourne_kevin
2004-10-26 21:36 ` [Caml-list] " Tiago Dionizio
2004-10-26 22:33 ` Matt Gushee
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=20041026201338.GA29858@force.stwing.upenn.edu \
--to=wlovas@stwing.upenn.edu \
--cc=caml-list@inria.fr \
/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;
as well as URLs for NNTP newsgroup(s).