aboutsummaryrefslogtreecommitdiff
path: root/tmux.c
diff options
context:
space:
mode:
Diffstat (limited to 'tmux.c')
-rw-r--r--tmux.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tmux.c b/tmux.c
index f98037b5..b5cdfbf9 100644
--- a/tmux.c
+++ b/tmux.c
@@ -20,19 +20,16 @@
#include <sys/stat.h>
#include <sys/utsname.h>
-#include <err.h>
#include <errno.h>
#include <event.h>
#include <fcntl.h>
#include <langinfo.h>
#include <locale.h>
-#include <paths.h>
#include <pwd.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
-#include <util.h>
#include "tmux.h"
@@ -56,7 +53,7 @@ static __dead void
usage(void)
{
fprintf(stderr,
- "usage: %s [-2Cluv] [-c shell-command] [-f file] [-L socket-name]\n"
+ "usage: %s [-2CluvV] [-c shell-command] [-f file] [-L socket-name]\n"
" [-S socket-path] [command [flags]]\n",
getprogname());
exit(1);
@@ -267,6 +264,9 @@ main(int argc, char **argv)
else
flags |= CLIENT_CONTROL;
break;
+ case 'V':
+ printf("%s %s\n", getprogname(), VERSION);
+ exit(0);
case 'f':
set_cfg_file(optarg);
break;
@@ -390,5 +390,5 @@ main(int argc, char **argv)
free(label);
/* Pass control to the client. */
- exit(client_main(event_init(), argc, argv, flags));
+ exit(client_main(osdep_event_init(), argc, argv, flags));
}