These are chat archives for kbknapp/clap-rs

4th
Oct 2018
ofer affias
@vim-zz_gitlab
Oct 04 2018 13:41

hi!

is there a way to have presets in clap, i.e. i have a cli app with many many arguments and I want to have some presets with short names.

for example i have the following flags
my-app --color <COLOR> --background <BACKGROUND>

and I would like to allow calling my app with these flags or just
my-app japan-flag

which will result with
my-app --color RED --background WHITE etc.