mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-30 22:25:19 +00:00 
			
		
		
		
	[options] Accept quoted string across multiple lines (#9940)
Like:
    -f "
    bestvideo+bestaudio/
    best
    "
			
			
This commit is contained in:
		 Jaime Marquínez Ferrándiz
					Jaime Marquínez Ferrándiz
				
			
				
					committed by
					
						 Sergey M․
						Sergey M․
					
				
			
			
				
	
			
			
			 Sergey M․
						Sergey M․
					
				
			
						parent
						
							eaaaaec042
						
					
				
				
					commit
					9e29ef13a3
				
			| @@ -26,9 +26,7 @@ def parseOpts(overrideArguments=None): | ||||
|         except IOError: | ||||
|             return default  # silently skip if file is not present | ||||
|         try: | ||||
|             res = [] | ||||
|             for l in optionf: | ||||
|                 res += compat_shlex_split(l, comments=True) | ||||
|             res = compat_shlex_split(optionf.read(), comments=True) | ||||
|         finally: | ||||
|             optionf.close() | ||||
|         return res | ||||
|   | ||||
		Reference in New Issue
	
	Block a user