Back to Atomvm

Module init

main-apidocs-erlang-estdlib-init.md

latest1.5 KB
Original Source

Module init

An implementation of the Erlang/OTP init interface.

Description

This module implements a strict subset of the Erlang/OTP init interface.

Function Index

| boot/1 | Entry point. | | get_argument/1 | Returns values associated with a given command-line user flag. | | get_plain_arguments/0 | Gets plain command-line arguments. |

Function Details

boot/1

boot(Args::[binary() | atom() | string()]) -> any()

Args: command line arguments

Entry point.

get_argument/1

get_argument(Flag::atom()) -> {ok, [string()]} | error

Flag: flag to get values for

returns: error if no value is associated with provided flag or values in order of the command line

Returns values associated with a given command-line user flag. Currently always returns error on AtomVM.

get_plain_arguments/0

get_plain_arguments() -> [string()]

returns: plain command-line arguments as a list of strings.

Gets plain command-line arguments. Currently always returns [] on AtomVM.