From: martijn Date: Wed, 11 Aug 2021 17:54:19 +0000 (+0000) Subject: On usage for commands without the common flags (mibtree) make sure there's X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4555aaa741f69b4a359c5ca540ca9d7d66fa1c58;p=openbsd On usage for commands without the common flags (mibtree) make sure there's a space between the subcommand and the flags. OK sthen@ --- diff --git a/usr.bin/snmp/snmpc.c b/usr.bin/snmp/snmpc.c index a77ef54cae2..29fef1f70c6 100644 --- a/usr.bin/snmp/snmpc.c +++ b/usr.bin/snmp/snmpc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: snmpc.c,v 1.35 2021/08/08 13:41:26 sthen Exp $ */ +/* $OpenBSD: snmpc.c,v 1.36 2021/08/11 17:54:19 martijn Exp $ */ /* * Copyright (c) 2019 Martijn van Duren @@ -1573,7 +1573,7 @@ usage(void) " [-n ctxname] [-O afnqvxSQ] [-r retries] [-t timeout] [-u user]\n" " [-v version] [-X privpass] [-x cipher] [-Z boots,time]\n" " " : "", - snmp_app->usage == NULL ? "" : snmp_app->usage); + snmp_app->usage == NULL ? " " : snmp_app->usage); exit(1); } for (i = 0; i < (sizeof(snmp_apps)/sizeof(*snmp_apps)); i++) {