fmt
This commit is contained in:
		
							parent
							
								
									dcbf635860
								
							
						
					
					
						commit
						bffead6680
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -48,7 +48,7 @@ function parseFlags( | ||||||
|       argsNullable[i] = null |       argsNullable[i] = null | ||||||
|       args[entry.name] = true |       args[entry.name] = true | ||||||
|       break |       break | ||||||
|     } else args[entry.name] = entry.defaultValue ?? false; |     } else args[entry.name] = entry.defaultValue ?? false | ||||||
|   } |   } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | @ -81,5 +81,5 @@ function parseRest( | ||||||
|   argsNullable: Array<string | null> |   argsNullable: Array<string | null> | ||||||
| ): void { | ): void { | ||||||
|   const restValues = argsNullable.filter((x) => typeof x === 'string') |   const restValues = argsNullable.filter((x) => typeof x === 'string') | ||||||
|   args[entry.name] = restValues !== null ? restValues : entry.defaultValue; |   args[entry.name] = restValues !== null ? restValues : entry.defaultValue | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue