✨ Added support for boolean options
This commit is contained in:
parent
058d3ec280
commit
bfb4500842
1 changed files with 2 additions and 0 deletions
|
@ -55,6 +55,8 @@ export default function Pattern(config = { options: {} }) {
|
|||
this.settings.options[i] = option.deg;
|
||||
else if (typeof option.count !== "undefined")
|
||||
this.settings.options[i] = option.count;
|
||||
else if (typeof option.bool !== "undefined")
|
||||
this.settings.options[i] = option.bool;
|
||||
else if (typeof option.dflt !== "undefined")
|
||||
this.settings.options[i] = option.dflt;
|
||||
else throw "Unknown option type";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue