summaryrefslogtreecommitdiffstats
path: root/tmux.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2007-11-09 11:03:35 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2007-11-09 11:03:35 +0000
commit0b832ea466cb013de2530f230d9a9ea9f1cd5641 (patch)
tree599897fecfa09435d7c6126b8e8bbbdc4cac22e4 /tmux.c
parent16321270c87b2bd7e081b658f23a4a33f79a802a (diff)
-V option to show tmux version.
Diffstat (limited to 'tmux.c')
-rw-r--r--tmux.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/tmux.c b/tmux.c
index 1a8a5227..a8d69338 100644
--- a/tmux.c
+++ b/tmux.c
@@ -1,4 +1,4 @@
-/* $Id: tmux.c,v 1.38 2007-10-24 11:42:03 nicm Exp $ */
+/* $Id: tmux.c,v 1.39 2007-11-09 11:03:35 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -178,7 +178,7 @@ main(int argc, char **argv)
int n, opt;
path = name = NULL;
- while ((opt = getopt(argc, argv, "S:s:v")) != EOF) {
+ while ((opt = getopt(argc, argv, "S:s:vV")) != EOF) {
switch (opt) {
case 'S':
path = xstrdup(optarg);
@@ -189,6 +189,9 @@ main(int argc, char **argv)
case 'v':
debug_level++;
break;
+ case 'V':
+ printf("%s " BUILD "\n", __progname);
+ exit(0);
default:
goto usage;
}