mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Use member names in cmd_entry definitions so I stop getting confused
about the order.
This commit is contained in:
		@@ -36,21 +36,27 @@
 | 
			
		||||
enum cmd_retval	 cmd_new_session_exec(struct cmd *, struct cmd_q *);
 | 
			
		||||
 | 
			
		||||
const struct cmd_entry cmd_new_session_entry = {
 | 
			
		||||
	"new-session", "new",
 | 
			
		||||
	"Ac:dDEF:n:Ps:t:x:y:", 0, -1,
 | 
			
		||||
	"[-AdDEP] [-c start-directory] [-F format] [-n window-name] "
 | 
			
		||||
	"[-s session-name] " CMD_TARGET_SESSION_USAGE " [-x width] "
 | 
			
		||||
	"[-y height] [command]",
 | 
			
		||||
	CMD_STARTSERVER|CMD_CANFAIL|CMD_SESSION_T,
 | 
			
		||||
	cmd_new_session_exec
 | 
			
		||||
	.name = "new-session",
 | 
			
		||||
	.alias = "new",
 | 
			
		||||
 | 
			
		||||
	.args = { "Ac:dDEF:n:Ps:t:x:y:", 0, -1 },
 | 
			
		||||
	.usage = "[-AdDEP] [-c start-directory] [-F format] [-n window-name] "
 | 
			
		||||
		 "[-s session-name] " CMD_TARGET_SESSION_USAGE " [-x width] "
 | 
			
		||||
		 "[-y height] [command]",
 | 
			
		||||
 | 
			
		||||
	.flags = CMD_STARTSERVER|CMD_CANFAIL|CMD_SESSION_T,
 | 
			
		||||
	.exec = cmd_new_session_exec
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
const struct cmd_entry cmd_has_session_entry = {
 | 
			
		||||
	"has-session", "has",
 | 
			
		||||
	"t:", 0, 0,
 | 
			
		||||
	CMD_TARGET_SESSION_USAGE,
 | 
			
		||||
	CMD_SESSION_T,
 | 
			
		||||
	cmd_new_session_exec
 | 
			
		||||
	.name = "has-session",
 | 
			
		||||
	.alias = "has",
 | 
			
		||||
 | 
			
		||||
	.args = { "t:", 0, 0 },
 | 
			
		||||
	.usage = CMD_TARGET_SESSION_USAGE,
 | 
			
		||||
 | 
			
		||||
	.flags = CMD_SESSION_T,
 | 
			
		||||
	.exec = cmd_new_session_exec
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
enum cmd_retval
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user