summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkn <kn@openbsd.org>2019-07-15 11:05:10 +0000
committerkn <kn@openbsd.org>2019-07-15 11:05:10 +0000
commit80e268707252709aaa82bee739a1a7d0f449656a (patch)
tree97467a8cbc9ecc1c2aba9b2f60bd4df11967c728
parentAdd tls-cert-bundle and example of using a DNS-over-TLS forwarder. (diff)
downloadwireguard-openbsd-80e268707252709aaa82bee739a1a7d0f449656a.tar.xz
wireguard-openbsd-80e268707252709aaa82bee739a1a7d0f449656a.zip
Fix usage
List all available commands grouped by their synopsis to complete the shown usage while still keeping it compact and precise. Input from deraadt schwarze OK kettenis
-rw-r--r--usr.sbin/ldomctl/ldomctl.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/usr.sbin/ldomctl/ldomctl.c b/usr.sbin/ldomctl/ldomctl.c
index 1193b86b8fc..67339264339 100644
--- a/usr.sbin/ldomctl/ldomctl.c
+++ b/usr.sbin/ldomctl/ldomctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ldomctl.c,v 1.21 2018/09/15 13:20:16 kettenis Exp $ */
+/* $OpenBSD: ldomctl.c,v 1.22 2019/07/15 11:05:10 kn Exp $ */
/*
* Copyright (c) 2012 Mark Kettenis
@@ -157,10 +157,11 @@ main(int argc, char **argv)
void
usage(void)
{
- extern char *__progname;
-
- fprintf(stderr, "usage: %s start|stop|panic domain\n", __progname);
- fprintf(stderr, " %s status [domain]\n", __progname);
+ fprintf(stderr, "usage:\t%1$s delete|select configuration\n"
+ "\t%1$s download directory\n"
+ "\t%1$s dump|list\n"
+ "\t%1$s init-system file\n"
+ "\t%1$s panic|start|status|stop [domain]\n", getprogname());
exit(EXIT_FAILURE);
}