A value doesn't fit a generator
error: "button" can't be name for generator component: it must match [A-Z][A-Za-z0-9]*hint: Give another value with --set name=<value>.Why it happens
Section titled “Why it happens”A value given to axle generate was refused before anything was written, because:
- it doesn’t match the variable’s
pattern, or isn’t one of itschoices; - it’s empty;
--setnames a variable the generator doesn’t have (the message then saysgenerator component has no variable named colourand lists the ones it has), or wasn’t written as<variable>=<value>;namewas given both as the argument and with--set;- for the
packagegenerator, a package with that name is already in the workspace.
How to fix it
Section titled “How to fix it”Give a value that fits what the message says. axle generate in a terminal shows each variable’s question and choices, and asks again when an answer doesn’t fit.