[go: up one dir, main page]

Menu

[a24988]: / example.escript  Maximize  Restore  History

Download this file

18 lines (9 with data), 200 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
#!/usr/bin/env escript
% Erlang script example.
main([String]) ->
io:format( "Hello: ~p", [String] );
main(_) ->
usage().
usage() ->
io:format("Usage: foo bar\n"),
halt(1).