Description
prismic field add boolean accepts a --default-value flag typed as boolean in Node's parseArgs. Boolean flags in parseArgs cannot be given an explicit value, so --default-value=true and --default-value=false both error out. The only way to set the default is to pass --default-value (true) or omit it (undefined), with no way to explicitly set false.
Change --default-value to a string flag that accepts "true" or "false", then parse it to a boolean before writing the model.
Description
prismic field add booleanaccepts a--default-valueflag typed asbooleanin Node'sparseArgs. Boolean flags inparseArgscannot be given an explicit value, so--default-value=trueand--default-value=falseboth error out. The only way to set the default is to pass--default-value(true) or omit it (undefined), with no way to explicitly setfalse.Change
--default-valueto a string flag that accepts"true"or"false", then parse it to a boolean before writing the model.