English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Arg parsing
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-10-27 (18:17)
From: Thomas Fischbacher <Thomas.Fischbacher@P...>
Subject: Re: [Caml-list] Arg parsing

On Tue, 26 Oct 2004, William Lovas wrote:

> 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.

That's not what I mean. I want to be able to start "ocaml" in such a way 
that I get the toplevel, but can #use code which parses the args that were 
given originally to ocaml.

regards,               tf@cip.physik.uni-muenchen.de              (o_
 Thomas Fischbacher -  http://www.cip.physik.uni-muenchen.de/~tf  //\
(lambda (n) ((lambda (p q r) (p p q r)) (lambda (g x y)           V_/_
(if (= x 0) y (g g (- x 1) (* x y)))) n 1))                  (Debian GNU)