summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1999-02-28 18:55:24 +0000
committerderaadt <deraadt@openbsd.org>1999-02-28 18:55:24 +0000
commit26455d67a141811bc8bb1d0d2a1e92cd74d27cc0 (patch)
tree3d2b8adc9f5fb0d85d9e99aeb3d0a7f75ca0636c
parentnew box (diff)
downloadwireguard-openbsd-26455d67a141811bc8bb1d0d2a1e92cd74d27cc0.tar.xz
wireguard-openbsd-26455d67a141811bc8bb1d0d2a1e92cd74d27cc0.zip
nice usage messages
-rw-r--r--usr.sbin/pkg_install/add/main.c9
-rw-r--r--usr.sbin/pkg_install/info/main.c11
2 files changed, 9 insertions, 11 deletions
diff --git a/usr.sbin/pkg_install/add/main.c b/usr.sbin/pkg_install/add/main.c
index 42f8d2d20f6..e7359a3cc44 100644
--- a/usr.sbin/pkg_install/add/main.c
+++ b/usr.sbin/pkg_install/add/main.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: main.c,v 1.9 1998/10/13 23:09:49 marc Exp $ */
+/* $OpenBSD: main.c,v 1.10 1999/02/28 18:55:24 deraadt Exp $ */
#ifndef lint
-static char *rcsid = "$OpenBSD: main.c,v 1.9 1998/10/13 23:09:49 marc Exp $";
+static char *rcsid = "$OpenBSD: main.c,v 1.10 1999/02/28 18:55:24 deraadt Exp $";
#endif
/*
@@ -161,8 +161,7 @@ main(int argc, char **argv)
static void
usage()
{
- fprintf(stderr, "%s\n%s\n",
- "usage: pkg_add [-vInfRMS] [-t template] [-p prefix]",
- " pkg-name [pkg-name ...]");
+ fprintf(stderr, "%s\n",
+ "usage: pkg_add [-vInfRMS] [-t template] [-p prefix] pkg-name ...");
exit(1);
}
diff --git a/usr.sbin/pkg_install/info/main.c b/usr.sbin/pkg_install/info/main.c
index 1122ea9b0fa..55411bc39c9 100644
--- a/usr.sbin/pkg_install/info/main.c
+++ b/usr.sbin/pkg_install/info/main.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: main.c,v 1.11 1998/10/13 23:09:51 marc Exp $ */
+/* $OpenBSD: main.c,v 1.12 1999/02/28 18:55:25 deraadt Exp $ */
#ifndef lint
-static char *rcsid = "$OpenBSD: main.c,v 1.11 1998/10/13 23:09:51 marc Exp $";
+static char *rcsid = "$OpenBSD: main.c,v 1.12 1999/02/28 18:55:25 deraadt Exp $";
#endif
/*
@@ -156,9 +156,8 @@ main(int argc, char **argv)
static void
usage()
{
- fprintf(stderr, "%s\n%s\n%s\n",
- "usage: pkg_info [-cDdfIikLmpqRrvh] [-e package] [-l prefix]",
- " pkg-name [pkg-name ...]",
- " pkg_info -a [flags]");
+ fprintf(stderr, "usage: %s\nusage: %s\n",
+ "pkg_info [-cDdfIikLmpqRrvh] [-e package] [-l prefix] pkg-name ...",
+ "pkg_info -a [flags]");
exit(1);
}