mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Remove error about using -L and -S together which was never displayed as
logging wasn't yet enabled, was unnecessary, and contradicted the man page which says using -S will cause -L to be ignored.
This commit is contained in:
		
							
								
								
									
										8
									
								
								tmux.c
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								tmux.c
									
									
									
									
									
								
							@@ -233,19 +233,11 @@ main(int argc, char **argv)
 | 
			
		||||
			cfg_file = xstrdup(optarg);
 | 
			
		||||
			break;
 | 
			
		||||
		case 'L':
 | 
			
		||||
			if (path != NULL) {
 | 
			
		||||
				log_warnx("-L and -S cannot be used together");
 | 
			
		||||
				exit(1);
 | 
			
		||||
			}
 | 
			
		||||
			if (label != NULL)
 | 
			
		||||
				xfree(label);
 | 
			
		||||
			label = xstrdup(optarg);
 | 
			
		||||
			break;
 | 
			
		||||
		case 'S':
 | 
			
		||||
			if (label != NULL) {
 | 
			
		||||
				log_warnx("-L and -S cannot be used together");
 | 
			
		||||
				exit(1);
 | 
			
		||||
			}
 | 
			
		||||
			if (path != NULL)
 | 
			
		||||
				xfree(path);
 | 
			
		||||
			path = xstrdup(optarg);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user