From 409e257a6c9eed449fb363d22e1363928f0dd690 Mon Sep 17 00:00:00 2001 From: jmc Date: Sat, 26 Jun 2021 18:03:45 +0000 Subject: [PATCH] make usage less chatty; ok mlarkin --- usr.sbin/vmctl/main.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/usr.sbin/vmctl/main.c b/usr.sbin/vmctl/main.c index 8bfa3b7d342..720715030df 100644 --- a/usr.sbin/vmctl/main.c +++ b/usr.sbin/vmctl/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.65 2021/05/12 20:13:00 dv Exp $ */ +/* $OpenBSD: main.c,v 1.66 2021/06/26 18:03:45 jmc Exp $ */ /* * Copyright (c) 2015 Reyk Floeter @@ -99,10 +99,7 @@ usage(void) fprintf(stderr, "usage:\t%s [-v] command [arg ...]\n", __progname); - for (i = 0; ctl_commands[i].name != NULL; i++) { - fprintf(stderr, "\t%s %s %s\n", __progname, - ctl_commands[i].name, ctl_commands[i].usage); - } + exit(1); } -- 2.20.1