Browse thread
Arg parsing
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2004-11-04 (20:40) |
From: | Thomas Fischbacher <Thomas.Fischbacher@P...> |
Subject: | Re: [Caml-list] Arg parsing |
On Thu, 4 Nov 2004, John Prevost wrote: > Perhaps if you explained why you want to do this, it would be easier > for us to help you. For example, if you're using #use to test out > argument parsing code, perhaps this could help you: > > module Sys = > struct > include Sys > let argv = [| "testprogram"; "my"; "arguments"; "for"; "testing" |] > end > > Other than that, I'm having a *really* hard time figuring out why you > would want to examine your command line arguments from an interactive > program. That's precisely what I want to do. And I do not see why I should have to bend over backwards and write such extra code for a task as simple as that which could be easily resolved by just making the ocaml interpreter accept a '--' arg properly... -- 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)