aboutsummaryrefslogtreecommitdiff
path: root/tmux.c
diff options
context:
space:
mode:
Diffstat (limited to 'tmux.c')
-rw-r--r--tmux.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/tmux.c b/tmux.c
index 6ae982eb..bc5718fd 100644
--- a/tmux.c
+++ b/tmux.c
@@ -1,4 +1,4 @@
-/* $Id: tmux.c,v 1.9 2007-09-26 13:43:15 nicm Exp $ */
+/* $Id: tmux.c,v 1.10 2007-09-26 14:08:16 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -53,7 +53,7 @@ int
usage(const char *s)
{
if (s == NULL)
- s = "command ...";
+ s = "command [flags]";
fprintf(stderr, "usage: %s [-v] [-s path] %s\n", __progname, s);
return (1);
}
@@ -182,11 +182,8 @@ main(int argc, char **argv)
for (i = 0; i < NOP; i++) {
op = op_table + i;
- if (strncmp(argv[0], op->cmd, strlen(op->cmd)) == 0) {
- argc--;
- argv++;
+ if (strncmp(argv[0], op->cmd, strlen(op->cmd)) == 0)
exit(op->fn(path, argc, argv));
- }
}
exit(usage(NULL));