claptrap 0.3.0

Bring the power of Clap to shell scripts.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
name = "myprog"
[styles]
header = { fg = "blue", bg = "#f0f0f0", underline = 7, effects = ["bold", "italic"] }
error = { fg = "bright-red" }
usage = { fg = "green" }
literal = { fg = "magenta" }
placeholder = { fg = "white" }
valid = { fg = "bright-green" }
invalid = { fg = "#ff0000" }
context = { fg = "yellow", bg = "#000000", effects = ["bold"] }
context-value = { fg = "cyan", bg = "#000000", effects = ["bold"] }
[args]
foo = { help = "It does foo stuff", short = 'f', long = "foo", value-name = "FOO", default-value = "bar", env = "MY_FOO", action = "set" }