mirror of
https://github.com/danbulant/bpm
synced 2026-05-19 04:08:47 +00:00
Values for flags only if long variant used
This commit is contained in:
parent
4b6ad0d01d
commit
1b70618de2
1 changed files with 3 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ con.forEach((a, i) => {
|
|||
if(a.type == "flag"){
|
||||
var next = con[i + 1];
|
||||
if(next){
|
||||
if(next.type == "content"){
|
||||
if (next.type == "content" && a.variant == "long"){
|
||||
skipNext = true;
|
||||
return flags[a.content] = next.content;
|
||||
}
|
||||
|
|
@ -47,6 +47,8 @@ con.forEach((a, i) => {
|
|||
contents.push(a.content);
|
||||
});
|
||||
|
||||
global.flags = flags;
|
||||
global.contents = contents;
|
||||
module.exports = {
|
||||
args: con,
|
||||
flags,
|
||||
|
|
|
|||
Loading…
Reference in a new issue