-S for socket, -s for session.

This commit is contained in:
Nicholas Marriott
2007-09-26 19:38:42 +00:00
parent 2a3e209cce
commit 187648e8d1
4 changed files with 28 additions and 18 deletions

8
tmux.c
View File

@ -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':