Values for flags only if long variant used

This commit is contained in:
danbulant 2020-02-21 16:39:36 +01:00
parent 4b6ad0d01d
commit 1b70618de2

View file

@ -37,7 +37,7 @@ con.forEach((a, i) => {
if(a.type == "flag"){ if(a.type == "flag"){
var next = con[i + 1]; var next = con[i + 1];
if(next){ if(next){
if(next.type == "content"){ if (next.type == "content" && a.variant == "long"){
skipNext = true; skipNext = true;
return flags[a.content] = next.content; return flags[a.content] = next.content;
} }
@ -47,6 +47,8 @@ con.forEach((a, i) => {
contents.push(a.content); contents.push(a.content);
}); });
global.flags = flags;
global.contents = contents;
module.exports = { module.exports = {
args: con, args: con,
flags, flags,