From: jmc Date: Sat, 26 Jun 2021 18:03:45 +0000 (+0000) Subject: make usage less chatty; ok mlarkin X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=409e257a6c9eed449fb363d22e1363928f0dd690;p=openbsd make usage less chatty; ok mlarkin --- 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); }