mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Instead of combined flags for -c, -s, -t, split into different sets
using an enum and simplify the parsing code.
This commit is contained in:
		@@ -44,7 +44,9 @@ const struct cmd_entry cmd_lock_session_entry = {
 | 
			
		||||
	.args = { "t:", 0, 0 },
 | 
			
		||||
	.usage = CMD_TARGET_SESSION_USAGE,
 | 
			
		||||
 | 
			
		||||
	.flags = CMD_SESSION_T,
 | 
			
		||||
	.tflag = CMD_SESSION,
 | 
			
		||||
 | 
			
		||||
	.flags = 0,
 | 
			
		||||
	.exec = cmd_lock_server_exec
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
@@ -55,7 +57,9 @@ const struct cmd_entry cmd_lock_client_entry = {
 | 
			
		||||
	.args = { "t:", 0, 0 },
 | 
			
		||||
	.usage = CMD_TARGET_CLIENT_USAGE,
 | 
			
		||||
 | 
			
		||||
	.flags = CMD_CLIENT_T,
 | 
			
		||||
	.tflag = CMD_CLIENT,
 | 
			
		||||
 | 
			
		||||
	.flags = 0,
 | 
			
		||||
	.exec = cmd_lock_server_exec
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user