mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	-S for socket, -s for session.
This commit is contained in:
		
							
								
								
									
										8
									
								
								tmux.c
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								tmux.c
									
									
									
									
									
								
							@@ -1,4 +1,4 @@
 | 
			
		||||
/* $Id: tmux.c,v 1.12 2007-09-26 19:09:30 nicm Exp $ */
 | 
			
		||||
/* $Id: tmux.c,v 1.13 2007-09-26 19:38:42 nicm Exp $ */
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
			
		||||
@@ -55,7 +55,7 @@ usage(const char *s)
 | 
			
		||||
{
 | 
			
		||||
	if (s == NULL)
 | 
			
		||||
		s = "command [flags]";
 | 
			
		||||
	fprintf(stderr, "usage: %s [-v] [-s path] %s\n", __progname, s);
 | 
			
		||||
	fprintf(stderr, "usage: %s [-v] [-S path] %s\n", __progname, s);
 | 
			
		||||
	return (1);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -161,9 +161,9 @@ main(int argc, char **argv)
 | 
			
		||||
	u_int			 i;
 | 
			
		||||
 | 
			
		||||
	path = NULL;
 | 
			
		||||
        while ((opt = getopt(argc, argv, "s:v?")) != EOF) {
 | 
			
		||||
        while ((opt = getopt(argc, argv, "S:v?")) != EOF) {
 | 
			
		||||
                switch (opt) {
 | 
			
		||||
		case 's':
 | 
			
		||||
		case 'S':
 | 
			
		||||
			path = xstrdup(optarg);
 | 
			
		||||
			break;
 | 
			
		||||
		case 'v':
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user