View Source ExTTRPGDev.CustomParsers (ExTTRPGDev v0.5.0)

Custom parsers to be used with Optimus args :parse

Summary

Functions

Parses a string of dice specifications seperated by commas

Functions

dice_parser(arg)

Parses a string of dice specifications seperated by commas

Examples

iex> ExTTRPGDev.CustomParsers.dice_parser("3d4, 1d10,2d20")
{:ok, ["3d4", "1d10", "2d20"]}