summaryrefslogtreecommitdiffstats
path: root/usr.sbin/hostctl
diff options
context:
space:
mode:
authorjmc <jmc@openbsd.org>2016-01-27 16:01:36 +0000
committerjmc <jmc@openbsd.org>2016-01-27 16:01:36 +0000
commit883e45ad234026ff375ade84be5a974771305e97 (patch)
tree47eecf6f2f24af8b6ee9e95373246a804a1be432 /usr.sbin/hostctl
parentRemove some lies and pointless verbiage. Tweak HISTORY. (diff)
downloadwireguard-openbsd-883e45ad234026ff375ade84be5a974771305e97.tar.xz
wireguard-openbsd-883e45ad234026ff375ade84be5a974771305e97.zip
- sort options
- add -q to usage()
Diffstat (limited to 'usr.sbin/hostctl')
-rw-r--r--usr.sbin/hostctl/hostctl.810
-rw-r--r--usr.sbin/hostctl/hostctl.c4
2 files changed, 7 insertions, 7 deletions
diff --git a/usr.sbin/hostctl/hostctl.8 b/usr.sbin/hostctl/hostctl.8
index b3f3f64f55d..5089ec612f0 100644
--- a/usr.sbin/hostctl/hostctl.8
+++ b/usr.sbin/hostctl/hostctl.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: hostctl.8,v 1.2 2016/01/27 14:26:40 jasper Exp $
+.\" $OpenBSD: hostctl.8,v 1.3 2016/01/27 16:01:36 jmc Exp $
.\"
.\" Copyright (c) 2016 Reyk Floeter <reyk@openbsd.org>
.\"
@@ -48,10 +48,6 @@ will write the new key-value pair to the key-value store.
.Pp
The options are as follows:
.Bl -tag -width Ds
-.It Fl q
-Don't ask for confirmation of any default options.
-.It Fl t
-Print the type of the underlying driver.
.It Fl f Ar device
Use
.Ar device
@@ -67,6 +63,10 @@ file.
Save the returned value in the
.Ar output
file.
+.It Fl q
+Don't ask for confirmation of any default options.
+.It Fl t
+Print the type of the underlying driver.
.El
.Sh FILES
.Bl -tag -width "/dev/pvbusX" -compact
diff --git a/usr.sbin/hostctl/hostctl.c b/usr.sbin/hostctl/hostctl.c
index f5bc4d34363..081beffde6e 100644
--- a/usr.sbin/hostctl/hostctl.c
+++ b/usr.sbin/hostctl/hostctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hostctl.c,v 1.2 2016/01/27 12:33:02 reyk Exp $ */
+/* $OpenBSD: hostctl.c,v 1.3 2016/01/27 16:01:36 jmc Exp $ */
/*
* Copyright (c) 2016 Reyk Floeter <reyk@openbsd.org>
@@ -44,7 +44,7 @@ __dead void
usage(void)
{
extern char *__progname;
- fprintf(stderr, "usage: %s [-t] [-f device] "
+ fprintf(stderr, "usage: %s [-qt] [-f device] "
"[-i input] [-o output] key [value]\n", __progname);
exit(1);
}