summaryrefslogtreecommitdiff
path: root/lib/reltool/examples/display_args
blob: 38f749f8b254a10954e153a2227835c3aa5b2c31 (plain)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env escript
%% -*- erlang -*-
%%! -emu_type opt -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]).