Getopt: command line parsing à la GNU getopt
Copyright (C) 2000-2004 Alain Frisch
distributed under an MIT-like license (see the COPYING file)
email: Alain.Frisch@ens.fr
web: http://www.eleves.ens.fr:8080/home/frisch
--------------------------------------------------------------------------
Contents of the distribution
Changes History of code changes
COPYING MIT license
README This file
getopt.ml source of Getopt (implementation)
getopt.mli source of Getopt (interface)
sample.ml a sample program to demonstrate the use of the module
Makefile Makefile to build the module and the sample program
--------------------------------------------------------------------------
What is it ?
The OCaml distribution comes with the module Arg specialized in
command-line parsing. However, it doesn't support the well known
features of GNU getopt and getopt_long.
The module Getopt is an alternative; it supports GNU syntax, but from the
programmer point of view, it is close to the spirit of Arg: the programmer
gives to the general parsing function a list of possible options, together
with the behaviour of these options.
--------------------------------------------------------------------------
General usage information
The documentation is included in the file getopt.mli.
There is an example in sample.ml.