Skip to content

Commit b03b4dd

Browse files
committed
argv function added
1 parent eb5da8e commit b03b4dd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ioSystem.ml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ module String = struct
2020
buffer
2121
end
2222

23+
(** The command line arguments of the program. *)
24+
let argv : string list =
25+
Array.to_list Sys.argv
26+
2327
(** List the files of a directory. *)
2428
let list_files (directory : string) : string list option Lwt.t =
2529
Lwt.catch (fun _ ->

0 commit comments

Comments
 (0)