From bad813f9700c54a83acf627a94bde791284c5e23 Mon Sep 17 00:00:00 2001 From: Reyk Floeter Date: Thu, 12 Jul 2018 14:53:38 +0000 Subject: The vmctl start -I option was changed to -t. I committed the manpage but accidentally forgot the main.c part. OK ccardenas@ --- usr.sbin/vmctl/main.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'usr.sbin/vmctl') diff --git a/usr.sbin/vmctl/main.c b/usr.sbin/vmctl/main.c index 2ab74c8bee1..b7674d0c980 100644 --- a/usr.sbin/vmctl/main.c +++ b/usr.sbin/vmctl/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.38 2018/07/12 12:04:49 reyk Exp $ */ +/* $OpenBSD: main.c,v 1.39 2018/07/12 14:53:37 reyk Exp $ */ /* * Copyright (c) 2015 Reyk Floeter @@ -71,7 +71,7 @@ struct ctl_command ctl_commands[] = { { "show", CMD_STATUS, ctl_status, "[id]" }, { "start", CMD_START, ctl_start, "\"name\"" " [-Lc] [-b image] [-r image] [-m size]\n" - "\t\t[-n switch] [-i count] [-d disk]* [-I name]" }, + "\t\t[-n switch] [-i count] [-d disk]* [-t name]" }, { "status", CMD_STATUS, ctl_status, "[id]" }, { "stop", CMD_STOP, ctl_stop, "id [-fw]" }, { "pause", CMD_PAUSE, ctl_pause, "id" }, @@ -592,7 +592,7 @@ ctl_start(struct parse_result *res, int argc, char *argv[]) argc--; argv++; - while ((ch = getopt(argc, argv, "b:r:cLm:n:d:I:i:")) != -1) { + while ((ch = getopt(argc, argv, "b:r:cLm:n:d:i:t:")) != -1) { switch (ch) { case 'b': if (res->path) @@ -633,16 +633,16 @@ ctl_start(struct parse_result *res, int argc, char *argv[]) if (parse_disk(res, path) != 0) errx(1, "invalid disk: %s", optarg); break; - case 'I': - if (parse_instance(res, optarg) == -1) - errx(1, "invalid name: %s", optarg); - break; case 'i': if (res->nifs != -1) errx(1, "interfaces specified multiple times"); if (parse_ifs(res, optarg, 0) != 0) errx(1, "invalid interface count: %s", optarg); break; + case 't': + if (parse_instance(res, optarg) == -1) + errx(1, "invalid name: %s", optarg); + break; default: ctl_usage(res->ctl); /* NOTREACHED */ -- cgit v1.2.3