It seems silly to use progname for version, just always say tmux.
authornicm <nicm@openbsd.org>
Mon, 17 Apr 2023 18:00:19 +0000 (18:00 +0000)
committernicm <nicm@openbsd.org>
Mon, 17 Apr 2023 18:00:19 +0000 (18:00 +0000)
usr.bin/tmux/tmux.c

index 47d159f..0df5878 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmux.c,v 1.210 2022/11/10 22:58:39 jmc Exp $ */
+/* $OpenBSD: tmux.c,v 1.211 2023/04/17 18:00:19 nicm Exp $ */
 
 /*
  * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -401,7 +401,7 @@ main(int argc, char **argv)
                        cfg_quiet = 0;
                        break;
                case 'V':
-                       printf("%s %s\n", getprogname(), getversion());
+                       printf("tmux %s\n", getversion());
                        exit(0);
                case 'l':
                        flags |= CLIENT_LOGIN;