Version française
Home     About     Download     Resources     Contact us    
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: Jacques Garrigue <garrigue@k...>
Subject: Re: [Caml-list] command arguments sticking together
> 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.

Could you explain a bit more what is your problem?
What is this /myscript? and these options? how do you use it?
If myscript is a bytecode non-custom exexcutable, then you may run into
problems, since you have trampolined #!s, which usually doesn't work
anyway.

       Jacques Garrigue
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners