aboutsummaryrefslogtreecommitdiffstats
path: root/lib/reltool/examples/display_args
blob: a8882f7bda4760188e69d06e859a07e79c23949f (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env escript
%% -*- erlang -*-
%%! -emuarg emuvalue

main(Args) ->
    {ok,[Emuvalue]} = init:get_argument(emuarg),
    io:format("Root dir: ~s\n", [code:root_dir()]),
    io:format("Script args: ~p\n", [Args]),
    io:format("Emuarg: ~p\n", [Emuvalue]).