Tags » rust » clap
TIL: Get a Palette colour as a command-line argument with Clap
Wrapping a
Palette:Srgbin a struct and implementingFromStrfor 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.