Barna.Options (barna v0.2.1)

This module contains functions for parsing the input options for the generated schema functions.

Link to this section Summary

Link to this section Functions

Link to this function

non_empty_list?(list)

Specs

non_empty_list?(list() | nil) :: boolean()
Link to this function

opt_to_list(opt, default_opt_name)

Specs

opt_to_list(list() | map() | term(), term()) :: [{term(), term()}]
Link to this function

parse_opt_required!(opts, opt_name)

Specs

parse_opt_required!(list() | map(), term()) :: term() | no_return()
Link to this function

parse_with_default(opts, opt_name, default_value)

Specs

parse_with_default(list() | map(), term(), term()) :: term()