Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Filename.quote - again
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jérôme_Marant <jerome.marant@f...>
Subject: Re: [Caml-list] command arguments sticking together
On Fri, Apr 19, 2002 at 05:58:57AM +0000, Brock wrote:
> I am attempting to write an ocaml program which acts as a script when a data
> file for it starts with
> #!/myscript option1 option2 ...
> The problem is that I am using the included Arg module to parse the arguments,
> but when myscript is called it only sees one argument consisting of all the
> arguments stuffed together... which the Arg routines don't care for much.
> So does anyone have any ideas to work around this?

  Is the Sys.argv array not enough for you?

Jérôme Marant
To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: