Tags » rust » clap
-
TIL: Get a Palette colour as a command-line argument with Clap
Wrapping a
Palette:Srgb
in a struct and implementingFromStr
for the struct allows you to take hexadecimal colours as command-line inputs.
Wrapping a Palette:Srgb
in a struct and implementing FromStr
for the struct allows you to take hexadecimal colours as command-line inputs.