Skip to content

Arg::value_parser

since 0.1.0

Specify the typed behavior of the argument.

name = "raw"
[args]
color = { long = "color", value-parser = ["always", "auto", "never"], default-value = "auto" }
Terminal window
prog --color auto
Terminal window
claptrap_color='auto'