From 187648e8d1d6bc80113e829d7895e1c81ddd3c17 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 26 Sep 2007 19:38:42 +0000 Subject: -S for socket, -s for session. --- op-list.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'op-list.c') diff --git a/op-list.c b/op-list.c index 1d32c862..ba7f3862 100644 --- a/op-list.c +++ b/op-list.c @@ -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 @@ -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); -- cgit