home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Applications / Moscow ML 1.42 / lib / CommandLine.sig < prev    next >
Encoding:
Text File  |  1997-08-18  |  365 b   |  13 lines  |  [TEXT/Moml]

  1. (* CommandLine -- SML Basis Library *)
  2.  
  3. val name      : unit -> string 
  4. val arguments : unit -> string list
  5.  
  6. (* 
  7.    [name ()] returns the name used to start the current process.
  8.    Hence List.nth(argv (), 0) is the first argument.
  9.  
  10.    [arguments ()] returns the command line arguments of the current process.
  11.    Hence List.nth(argv (), 0) is the first argument.
  12. *)
  13.