blob: 9e16818da531c839136cc6fe587350a5df304e91 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
#! /usr/bin/env escript
%% -*- erlang -*-
%%! -nostick -mnesia dir a/directory -mnesia debug verbose
main(MainArgs) ->
io:format("main:~p\n",[MainArgs]),
ErlArgs = init:get_arguments(),
io:format("nostick:~p\n",[[E || E <- ErlArgs, element(1, E) =:= nostick]]),
io:format("mnesia:~p\n", [[E || E <- ErlArgs, element(1, E) =:= mnesia]]),
io:format("ERL_FLAGS=~p\n", [os:getenv("ERL_FLAGS")]),
io:format("unknown:~p\n",[[E || E <- ErlArgs, element(1, E) =:= unknown]]).
|