[erlang-questions] Command line option parser (getopt?)

Mazen Harake <>
Fri Jun 6 11:59:28 CEST 2008

Hiya (And welcome? :)

Try init:get_arguments/0 or init:get_argument/1

Also, incase you will want to read input you will eventually need: io:read/1

Good luck,

Micah Elliott wrote:
> Hi.  I'm brand new to Erlang, and really enjoying it so far.  I'm
> trying to get a feel for the language by writing a toy CLI tool.
> I haven't yet been able to locate a getopt-like module.  Does one
> exist?  I expect it must considering, e.g.,  perl has dozens in
> CPAN, and Python has a least a couple nice ones (optparse,
> argparse).  Thanks for any pointers.

Mazen Harake <>
Erlang Software Developer and Consultant,
Erlang Training & Consulting, Ltd

Mobile Phone: +44 (0)795 13 26 317
Office Phone: +44 (0)207 45 61 020
Office Address:
401 London Fruit & Wool Exchange
Brushfield St, London, E1 6EL
United Kingdom

More information about the erlang-questions mailing list