Ignore underscore argument
This commit is contained in:
		
							parent
							
								
									e725c4d1eb
								
							
						
					
					
						commit
						e640cc8f77
					
				
					 1 changed files with 20 additions and 18 deletions
				
			
		| 
						 | 
					@ -9,28 +9,30 @@ module.exports = (input) => {
 | 
				
			||||||
      if (a.includes("=")) {
 | 
					      if (a.includes("=")) {
 | 
				
			||||||
        const [arg, value] = a.slice(2).split("=");
 | 
					        const [arg, value] = a.slice(2).split("=");
 | 
				
			||||||
        let ended = true;
 | 
					        let ended = true;
 | 
				
			||||||
        if (value.startsWith("\"")) {
 | 
					        if (arg !== "_") {
 | 
				
			||||||
          if (value.endsWith("\"")) {
 | 
					          if (value.startsWith("\"")) {
 | 
				
			||||||
            args[arg] = value.slice(1).slice(0, -1);
 | 
					            if (value.endsWith("\"")) {
 | 
				
			||||||
 | 
					              args[arg] = value.slice(1).slice(0, -1);
 | 
				
			||||||
 | 
					            } else {
 | 
				
			||||||
 | 
					              args[arg] = `${value.slice(1)} `;
 | 
				
			||||||
 | 
					              ended = false;
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					          } else if (value.endsWith("\"")) {
 | 
				
			||||||
 | 
					            args[arg] += a.slice(0, -1);
 | 
				
			||||||
 | 
					          } else if (value !== "") {
 | 
				
			||||||
 | 
					            args[arg] = value;
 | 
				
			||||||
          } else {
 | 
					          } else {
 | 
				
			||||||
            args[arg] = `${value.slice(1)} `;
 | 
					            args[arg] = true;
 | 
				
			||||||
            ended = false;
 | 
					 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
        } else if (value.endsWith("\"")) {
 | 
					          if (args[arg] === "true") {
 | 
				
			||||||
          args[arg] += a.slice(0, -1);
 | 
					            args[arg] = true;
 | 
				
			||||||
        } else if (value !== "") {
 | 
					          } else if (args[arg] === "false") {
 | 
				
			||||||
          args[arg] = value;
 | 
					            args[arg] = false;
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					          if (!ended) curr = arg;
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
          args[arg] = true;
 | 
					          args[a.slice(2)] = true;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        if (args[arg] === "true") {
 | 
					 | 
				
			||||||
          args[arg] = true;
 | 
					 | 
				
			||||||
        } else if (args[arg] === "false") {
 | 
					 | 
				
			||||||
          args[arg] = false;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        if (!ended) curr = arg;
 | 
					 | 
				
			||||||
      } else {
 | 
					 | 
				
			||||||
        args[a.slice(2)] = true;
 | 
					 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    } else if (curr) {
 | 
					    } else if (curr) {
 | 
				
			||||||
      if (a.endsWith("\"")) {
 | 
					      if (a.endsWith("\"")) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue