mirror of
https://github.com/tmux/tmux.git
synced 2024-11-16 09:28:51 +00:00
-V option to show tmux version.
This commit is contained in:
parent
16321270c8
commit
0b832ea466
3
CHANGES
3
CHANGES
@ -1,5 +1,6 @@
|
|||||||
09 November 2007
|
09 November 2007
|
||||||
|
|
||||||
|
* (nicm) -V to show version.
|
||||||
* (nicm) rename-session command.
|
* (nicm) rename-session command.
|
||||||
|
|
||||||
08 November 2007
|
08 November 2007
|
||||||
@ -194,4 +195,4 @@
|
|||||||
(including mutt, emacs). No status bar yet and no key remapping or other
|
(including mutt, emacs). No status bar yet and no key remapping or other
|
||||||
customisation.
|
customisation.
|
||||||
|
|
||||||
$Id: CHANGES,v 1.60 2007-11-09 11:02:01 nicm Exp $
|
$Id: CHANGES,v 1.61 2007-11-09 11:03:34 nicm Exp $
|
||||||
|
7
tmux.c
7
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>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -178,7 +178,7 @@ main(int argc, char **argv)
|
|||||||
int n, opt;
|
int n, opt;
|
||||||
|
|
||||||
path = name = NULL;
|
path = name = NULL;
|
||||||
while ((opt = getopt(argc, argv, "S:s:v")) != EOF) {
|
while ((opt = getopt(argc, argv, "S:s:vV")) != EOF) {
|
||||||
switch (opt) {
|
switch (opt) {
|
||||||
case 'S':
|
case 'S':
|
||||||
path = xstrdup(optarg);
|
path = xstrdup(optarg);
|
||||||
@ -189,6 +189,9 @@ main(int argc, char **argv)
|
|||||||
case 'v':
|
case 'v':
|
||||||
debug_level++;
|
debug_level++;
|
||||||
break;
|
break;
|
||||||
|
case 'V':
|
||||||
|
printf("%s " BUILD "\n", __progname);
|
||||||
|
exit(0);
|
||||||
default:
|
default:
|
||||||
goto usage;
|
goto usage;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user