diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-09-26 19:38:42 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-09-26 19:38:42 +0000 |
commit | 187648e8d1d6bc80113e829d7895e1c81ddd3c17 (patch) | |
tree | f3d2af9e8dd72f60c175d7cbd0611f353c587a5f /op-list.c | |
parent | 2a3e209ccedd5d737e6a778481e54ca042f3ab5f (diff) | |
download | rtmux-187648e8d1d6bc80113e829d7895e1c81ddd3c17.tar.gz rtmux-187648e8d1d6bc80113e829d7895e1c81ddd3c17.tar.bz2 rtmux-187648e8d1d6bc80113e829d7895e1c81ddd3c17.zip |
-S for socket, -s for session.
Diffstat (limited to 'op-list.c')
-rw-r--r-- | op-list.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,4 +1,4 @@ -/* $Id: op-list.c,v 1.2 2007-09-26 18:32:16 nicm Exp $ */ +/* $Id: op-list.c,v 1.3 2007-09-26 19:38:42 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -39,9 +39,9 @@ op_list(char *path, int argc, char **argv) *name = '\0'; optind = 1; - while ((opt = getopt(argc, argv, "n:?")) != EOF) { + while ((opt = getopt(argc, argv, "s:?")) != EOF) { switch (opt) { - case 'n': + case 's': if (strlcpy(name, optarg, sizeof name) >= sizeof name) { log_warnx("%s: session name too long", optarg); return (1); @@ -49,13 +49,13 @@ op_list(char *path, int argc, char **argv) break; case '?': default: - return (usage("list [-n session]")); + return (usage("list [-s session]")); } } argc -= optind; argv += optind; if (argc != 0) - return (usage("list [-n session]")); + return (usage("list [-s session]")); if (client_init(path, &cctx, 0) != 0) return (1); |