11 lines · 317 B · Standard ML
RawDownload
(* CommandLine -- SML Basis Library *) val name      : unit -> string val arguments : unit -> string list (*    [name ()] returns the name used to start the current process.    [arguments ()] returns the command line arguments of the current process.   Hence List.nth(arguments (), 0) is the first argument.*)