Burrito.Util.Args (burrito v1.1.1)

This module provides a method to help fetch CLI arguments, whether passed down from the Zig wrapper binary or from the the system.

Summary

Functions

Get the arguments from the CLI, regardless if run under Burrito or not.

Get CLI arguments passed down from the Zig wrapper binary. Do note that this will get OTP runtime arguments when called outside of a Burrito-built context. You may consider argv/0 as a more general alternative.

Functions

@spec argv() :: [String.t()]

Get the arguments from the CLI, regardless if run under Burrito or not.

Link to this function

get_arguments()

@spec get_arguments() :: [String.t()]

Get CLI arguments passed down from the Zig wrapper binary. Do note that this will get OTP runtime arguments when called outside of a Burrito-built context. You may consider argv/0 as a more general alternative.