commandDispatcher: only argv if starts with - and has =
This commit is contained in:
		
							parent
							
								
									35c39863e0
								
							
						
					
					
						commit
						a15e4c9d1d
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -32,7 +32,7 @@ function parseAsArgv(argv) {
 | 
			
		|||
        ? removeStartHyphens(arg)
 | 
			
		||||
        : removeStartHyphens(arg.slice(0, equalsIndex));
 | 
			
		||||
 | 
			
		||||
    if (equalsIndex !== -1) {
 | 
			
		||||
    if (equalsIndex !== -1 && arg.charAt(0) === "-") {
 | 
			
		||||
      optional[argName] = convertIfApplicable(arg.slice(equalsIndex + 1));
 | 
			
		||||
    } else if (arg.charAt(0) === "-") {
 | 
			
		||||
      if (arg.charAt(1) === "-") {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue